Hi All,
I'm having a small problem with sessions, or in particular some of the
data is not being saved within the session data.
To be exact, 1 variable from within an object is not being saved, but
all the other varibles within the same object are. Having a look at
the created session file, shows an unusual field relating to the
varible in question.
Session Data:
HRM_App|O:7:"hrm_app":9:{s:5:"state";a:0:{}s:7:"us er_id";s:2:"19";
s:8:"username";s:17:"d.smith";s:4:"dept";s:1:"1";s :4:"comp";s:1:"2";
s:13:"user_security";i:1;s:3:"msg";s:0:"";s:15:"de faultRedirect";s:0:"";
s:3:"cfg";a:11:{s:6:"dbtype";s:5:"mysql";}}
The odd one out is: s:13:"user_security";i:1; where all the other
fields have the following format: s:3:"msg";s:0:"";
When I query that field later on, it returns "1", not the value that
it's initialised with as part of the application login procedure
(which also sets the other variables as well).
So can someone explain what the "i" indicates, what's going on, and a
possible fix?
TIA, Chewy509.
PS. PHP 4.3.2 on Win2K with IIS.
PPS. I've searched for a description of the session file format used
by PHP, but can't find one anywhere? If someone knows of a link, then
it would be appreciated to pass on that info.