Re: session, session AAAARGH
| From: | Johannes Janson | Date: | Wed, 04 Apr 2001 18:01:41 +0000 |
| Subject: | Re: session, session AAAARGH | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6507@lists.php.net to get a copy of this message | ||
thanks John but nope, still the same...
just some -maybe helpful- more info:
php.ini:
session.save_handler = files
session.save_path = C:\Programme\Apache
Group\Apache\cgi-bin\php4\sessiondata
session.use_cookies = 1
session.name = PHPSESSID
""Asendorf, John"" <JAsendorf@lcounty.com> schrieb im Newsbeitrag
news:620001CE6A56D41189F300B0D0220374412B07@exchange.lcounty.com...
> Don't forget session_destroy (); at some point...
>
> ---------------------
> John Asendorf - jasendorf@lcounty.com
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aut insanit homo, aut versus facit
>
>
> > -----Original Message-----
> > From: Asendorf, John [mailto:JAsendorf@lcounty.com]
> > Sent: Wednesday, April 04, 2001 1:49 PM
> > To: Johannes Janson; Php-Windows (E-mail)
> > Subject: RE: [PHP-WIN] session, session AAAARGH
> >
> >
> > Try this little rework...
> >
> >
> >
> >
> >
> >
> > <?
> > session_start();
> >
> >
> > if ( !isset($count)) {
> > $count = 0;
> > session_register("count");
> > echo "<li>Counter initialized, please reload this page to see it
> > increment";
> > } else {
> > echo "<li>Waking up session $PHPSESSID";
> > $count++;
> > session_register("count");
> > }
> > echo "<li>The counter is now $count ";
> > ?>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ---------------------
> > John Asendorf - jasendorf@lcounty.com
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> > Aut insanit homo, aut versus facit
> >
> >
> > > -----Original Message-----
> > > From: Johannes Janson [mailto:johannes.janson@gmx.de]
> > > Sent: Wednesday, April 04, 2001 1:34 PM
> > > To: php-windows@lists.php.net
> > > Subject: [PHP-WIN] session, session AAAARGH
> > >
> > >
> > > Hi,
> > >
> > > I just figured out that my session-management is
> > > not working. I have a small, simple script to test
> > > this:
> > >
> > > <?
> > > session_start();
> > > session_register("SESSION");
> > >
> > > if (! isset($SESSION)) {
> > > $SESSION["count"] = 0;
> > > echo "<li>Counter initialized, please reload this page to see it
> > > increment";
> > > } else {
> > > echo "<li>Waking up session $PHPSESSID";
> > > $SESSION["count"]++;
> > > }
> > > echo "<li>The counter is now $SESSION[count] ";
> > > ?>
> > >
> > > But the counter stays at "0". And in the specified session.save_path
> > > directory I have a new file every time I reload the page.
> > >
> > > What is wrong??
> > >
> > > TIA
> > > johannes
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-windows-help@lists.php.net
> > > To contact the list administrators, e-mail:
> > > php-list-admin@lists.php.net
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>