Re: [Phplib-users] session variable
Brought to you by:
nhruby,
richardarcher
From: <fmo...@fm...> - 2004-05-05 17:26:58
|
The exact syntax is: <?php page_close() ?> assuming you're in an html context up to that point. Forgetting to put this in has bitten me in the butt before. Another source of the same problem would be a routine or condition in your PHP code which would cause an exit() from the page without execution reaching the page_close() call at the bottom of the page. If you have any program flow control in your code which would bypass this call, you'll need to make sure that page_close() is called somewhere else. Thus spake patrick on Wed, May 05, 2004 at 09:09:01AM CDT > Make sure you do > page_close > at the end of your page > > 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 > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: Oracle 10g > > Get certified on the hottest thing ever to hit the market... Oracle 10g. > > Take an Oracle 10g class now, and we'll give you the exam FREE. > > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > > _______________________________________________ > > Phplib-users mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users -- Lindsay Haisley | "Everything works | PGP public key FMP Computer Services | if you let it" | available at 512-259-1190 | (The Roadie) | <http://www.fmp.com/pubkeys> http://www.fmp.com | | |