aspose file tools
The moose likes Servlets and the fly likes How to turn off https once logged in? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to turn off https once logged in?" Watch "How to turn off https once logged in?" New topic
Author

How to turn off https once logged in?

Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

I am using this:

<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>

for a login page, but once logged i want to turn off https.

Any idea?

p.s, i'm using tomcat as the web container.


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA

Live life to an interface, not an implementation!
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

An absolute link starting with 'http://...." will do it.

Just be aware, Tomcat creates separate sessions for secure and non secure connections so you will loose your session when you do this. Also, most browsers will whine with a popup if you force the user out of a secure session to a non-secure one.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Marcelo Ortega
Ranch Hand

Joined: May 31, 2005
Posts: 519

Thanks Ben.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to turn off https once logged in?
 
Similar Threads
Studying HeadFirst book: cannot make authentification
Which authentication method to choose ?
Switching from HTTPS back to HTTP
problem in transport-guarantee
https back to http