Reverting from HTTPS to HTTP

Right now I am using HTTPS for a secure login by configuring in JBOSS4.04 RC1 with bundled Tomcat:

<security-constraint>

<web-resource-collection>

<web-resource-name>Login</web-resource-name>

<url-pattern>/faces/SecureLogin.jsp</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>ROLE_ADMIN</role-name>

<role-name>ROLE_USER</role-name>

<role-name>ROLE_MODERATOR</role-name>

</auth-constraint>

<user-data-constraint>

<transport-guarantee>CONFIDENTIAL</transport-guarantee>

</user-data-constraint>

</security-constraint>

[code]

Along with the settings in server.xmlthis works fine. The app switches to https protocol and port 8443 (instead of 8080) when you reach that page and allows you to login encrypted.

But it stays that way, navigation after logging in keeps being secure. I want to revert back to http obviously.

Marking pages after that with a data cnstraint NONE does notdo anything.

It occurred to me that it's possible to change that by hard-coding a link to HTTP but that's dirty design.

Any ideas? Thanks.[code]

[1393 byte] By [Ackua] at [2007-10-2 15:12:48]
# 1

I pulled this from the Java EE 5 tutorial:

Note: Good Security Practice: If you are using sessions, after you switch to SSL you should never accept any further requests for that session that are non-SSL. For example, a shopping site might not use SSL until the checkout page, and then it may switch to using SSL in order to accept your card number. After switching to SSL, you should stop listening to non-SSL requests for this session. The reason for this practice is that the session ID itself was not encrypted on the earlier communications. This is not so bad when you're only doing your shopping, but after the credit card information is stored in the session, you don't want a bad guy trying to fake the purchase transaction against your credit card. This practice could be easily implemented using a filter.

MikeDiaa at 2007-7-13 14:11:29 > top of Java-index,Security,Java Secure Socket Extension (JSSE)...