Re: [Phplib-users] session variable
Brought to you by:
nhruby,
richardarcher
From: Clark F. <cl...@th...> - 2004-05-05 15:54:19
|
Norbert, It sounds like you are doing a page_close(), so I'm guessing that's not the problem. Also, I'm not positive but I believe page_close() is not even necessary when using PHP4 native sessions, because PHP will automatically write the session at the end of output. Can you send along a code snippet (all the way from page_open to page_close) illustrating how you want to use your session variable and how it's not working? Also, make sure you are including local4.inc and session4.inc in your prepend.php, and using local4.inc to define your derived session class. Are you using sessions only, or are you using auth, perm or user as well? Are you using cookie or get mode for the session? If you are using cookies, you might check your browser files to see if the cookie is being set. Best, Clark On Wed, 5 May 2004, Norbert Felde wrote: > Hello, > > My program lose session variable. > > I register a variable with $sess->register and it works fine. > I can read its value with $_SESSION, and even the $sess->is_registered > returns with true. > I can read the value of this session variable just before page_close and > after page_close. There is nothing else after page_close, I only print > this value. > > If I refresh the page, my session variable is not set. I tried to print > out its value just after session_start is called in function > $sess->start in session4.inc but nothing. > > Register_globals is off in php.ini. > I use the following versions: > win xp > apache: > 2.0.49 > php: > 4.3.6 > phplib > 7.4 > > > I have no idea what should I do to find the problem. > > I hope you could understend my problem and my english. > > Thanks, > Norbert |