You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Prashant Kalkar <ka...@gmail.com> on 2008/04/16 12:47:09 UTC
Redirecting from HTTPS to HTTP (Tomcat 5.5)
Hi,
I am trying to use HTTPs for my login page. After the logging is done the
subsequent pages should use HTTP.
I succeeded in using HTTPs for login page. but after login page the
redirection from HTTPs to HTTP is not happening. All the pages are using
HTTPs.
I configured the security-constraint as CONFIDENTIAL only for the login page
url.
Also while I searched on this issue on net and found a possible problem as
the session created in HTTPS can not be used in HTTP, so the session should
be first created in HTTP.
So I created the session using request.getSession(true) in a filter before
redirecting to the login page. But it still not working.
Please help
Regards,
Prashant
Re: Redirecting from HTTPS to HTTP (Tomcat 5.5)
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Prashant,
Prashant Kalkar wrote:
| I am trying to use HTTPs for my login page. After the logging is done the
| subsequent pages should use HTTP.
|
| I succeeded in using HTTPs for login page. but after login page the
| redirection from HTTPs to HTTP is not happening. All the pages are using
| HTTPs.
|
| I configured the security-constraint as CONFIDENTIAL only for the
login page
| url.
Are you explicitly sending the user back to HTTP in any way? If you
don't, the browser will simply continue to use https:// URLs.
| Also while I searched on this issue on net and found a possible problem as
| the session created in HTTPS can not be used in HTTP, so the session
should
| be first created in HTTP.
Correct. This is actually cookie "feature", not exactly Tomcat-related.
| So I created the session using request.getSession(true) in a filter before
| redirecting to the login page. But it still not working.
What is the URL that redirects to your HTTPS login page? After login,
what steps do you take?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEUEARECAAYFAkgGQzEACgkQ9CaO5/Lv0PB/ywCdFklWOfSJHMcLHCEMHeUWbQQb
7L8AmPUjKnb/TxNUptW7ly4G/HY37ic=
=+zko
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org