File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: How to turn off https once logged in?
 
Similar Threads
https back to http
Which authentication method to choose ?
problem in transport-guarantee
Switching from HTTPS back to HTTP
Studying HeadFirst book: cannot make authentification