[PHP] session mysteriously killed

2009-01-20 Thread clive
Hi we have an web based intranet system, users started reporting that they kept getting logged out, and the log outs were happening randomly. There is no coded any were that refers to sessions other than the login/logout and header file. Ive increased the session.cookie_lifetime to

Re: [PHP] session mysteriously killed

2009-01-20 Thread ceo
Are you perhaps storing the session data in a DB? If the field type is, say, text, and you put something large in $_SESSION, you'll have truncated data, the session manager can't unserialize it, and you will have a silent failure when they try to do their next task -- They get logged out

Re: [PHP] session mysteriously killed

2009-01-20 Thread clive
c...@l-i-e.com wrote: Are you perhaps storing the session data in a DB? No its using the file system If the field type is, say, text, and you put something large in $_SESSION, you'll have truncated data, the session manager can't unserialize it, and you will have a silent failure when

Re: [PHP] session mysteriously killed

2009-01-20 Thread clive
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,

Re: [PHP] session mysteriously killed

2009-01-20 Thread Edmund Hertle
2009/1/20 clive clive_li...@immigrationunit.com 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