I need to be able to determine whether the session ID stored in cookies or propagated in the URL actually refers to a valid session...
I cannot find a function in the session library which does this...
However I can get the ID of the session and the path where the sessions are stored...
Assuming I can always follow the convention:
Code: Select all
$path/[b]sess_[/b]$sessionidOn a shared host, can I just do something like:
Code: Select all
$path = session_save_path();
$sess = session_id();
echo file_exists("$path/sess_$sess");Does SAFE MODE have any effect on me performing this lookup?
Cheers