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.

Link to comment
Share on other sites

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.

Edited by iarp
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.