Jump to content

Is it possible to find a previous session if cookie has been deleted?


eldan88

Recommended Posts

With traditional file-based sessions you could get the session_save_path directory and scan through the files searching for some particular string. If you find the string, then the session ID is in the name of the file, just extract it and restore it (using session_id prior to session_start).

 

If you are using some other session handler (such as memcache or mysql) you'll need to figure out something else out by looking into how the data is actually saved.

With traditional file-based sessions you could get the session_save_path directory and scan through the files searching for some particular string. If you find the string, then the session ID is in the name of the file, just extract it and restore it (using session_id prior to session_start).

 

If you are using some other session handler (such as memcache or mysql) you'll need to figure out something else out by looking into how the data is actually saved.

 

I'm using session_start() is that considered traditional file-based sessions?

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.