Jump to content

Session handling when load is high


sandy1028

Recommended Posts

Your question is confusing. If you are using the same server for the same user? As opposed to what?

 

And why do you care how the session is managed? Php will handle it for you unless you have written something to replace standard session handling.

By default PHP stores session data in a file in the session.save_path directory found within your php.ini file.

 

You could configure it to use a database if you wanted. Otherwise it is a regular file. A cookie in the users browser contains a unique value that matches a file within the directory containing whatever their session data contains.

 

The reason it can be so easy to hijack a session is because there is nothing else that links that unique id to your browser aside from the cookie. So if I were to give someone the ID or they took it from my machine somehow, they could override their own browser's cookie value with my session ID and instantly have whatever is in my session data.

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.