http to https after login

How do I make my url to become https://www.domainname.com
after I have login ?
Initially the url page should be http://www.domainname.com
p/s: the website has already been registered with trustasia security(http://www.trustasia.com)
with encrypted security it will be(https://www.trustasia.com)
btw all the codes are handle using jsps, thanks in advance
ueikiAsked:
Who is Participating?
 
cheekycjConnect With a Mentor Commented:
the simplest way is to make the login form itself submit to a secure page.. and make sure all the links are secure from there on.

A server side check to make sure the user is accessing pages over SSL might be good too.

If you don't want to have the form submit to an ssl page, though it is better that way. you can set up the page that verifies login credentials to send a redirect using response.sendRedirect("full url path here"); in the JSP.

CJ
0
 
cheekycjCommented:
Thanx for the "A"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.