Jump to content

sessions help


weee

Recommended Posts

Hello everyone,

 

By default when someone comes to my site, it is the unencrypted web page (http://www.mydomain.com).  I recently purchased a ssl certificate so when a user logs in, their password is encrypted (Posted to https://mydomain.com).  Once the form is posted, the session is set and the header("Location: http://www.mydomain.com"); function is executed to bring them back to the unencrypted version of the site.  However, now when a user tries to login, my site seems to drop the session when the location is set to the unencrypted version of the site.

 

How do sites go about using a secure login form and running on the regular version of the site?

 

Thanks!

weee

Link to comment
https://forums.phpfreaks.com/topic/224575-sessions-help/
Share on other sites

Don't attempt to pass session id's back and forth between HTTPS and HTTP connections, it is not secure.

 

The person most likely to be monitoring your TCP/IP data packets is someone with access to the wired network or an unencrypted wireless connection that you are using. They can impersonate your computer perfectly, all the way down to the IP address that the server sees (because they connect to the server from the same network you are on) and if they get your session id when it is sent back and forth over a non-HTTPS connection, they can do anything on the server that you are permitted to do when you are logged in.

Link to comment
https://forums.phpfreaks.com/topic/224575-sessions-help/#findComment-1160342
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.