Re: session mysteriously killed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



further to my last email,

the bit of code that checks if the person is logged in looks something like this:

if ( isset ( $_SESSION['loggedin'] ) ) {
   //check some other session variables

} else {

   //log reason for logging the user out
   //redirect to login page

}

The variable, $_COOKIE['PHPSESSID'], has a value when a log out occurs and when I check the session save path, a file exists that corresponds the PHPSESSID sent via the cookie and it has all the right values, so $_SESSION['loggedin'] does exits and has a value.

Its almost like php has a problem accessing the sess_XXXXXXXXXXXXXXXX file sometimes.

Clive


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux