• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Leaving https and coming back to http

 
Edisandro Bessa
Ranch Hand
Posts: 584
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

In my WEB application I use the FORM authentication with SSL.

Basically, in the login form, the submit button redirects the user to the j_security_check by using https.

So far so good, the problem is that after authentication is performed and the desired url is loaded, all reamining requests are using the https. Even for that non secure urls.

I could realize that if I construct all my urls by explicitly putting the http:// text before the url this problem is solved.

Once all my web pages use urls relative to application context, I didn't found this solution very elegant because I have to change all relative for absolute urls.

Example :

Original url link in my web page : /admin/ManageUsers.do ==> redirects to https://candidates/admin/ManageUsers.do

New changed url link in my web page :http://candidates/admin/ManageUsers.do

Is there another more elegant solution for this ?

Best Regards,
Edisandro Bessa.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could put a redirect to a non-HTTPS URL into the page that's reached right after the login.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic