Re: session.save_handler = user

From: Date: Fri, 31 Aug 2001 11:12:20 +0000
Subject: Re: session.save_handler = user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65452@lists.php.net to get a copy of this message
A colegue of mine said to me a month ago that in the routines on phpbuilder.com there are one or few bugs. Look at the code. The problem is in session handlers. Hope this will help you. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS ----- Original Message ----- From: "php-jp" <php-jp@typhoon.jp> To: <php-general@lists.php.net> Sent: Friday, August 31, 2001 1:56 PM Subject: [PHP] session.save_handler = user > Hello! > > I have a question regarding sessions when > > register_globals = off > > in php.ini > > Using the example from www.php.net: > > <? > session_register("count"); > $HTTP_SESSION_VARS["count"]++; > ?> > > This works well when > > session.save_handler = files > > However, when > > session.save_handler = user > > where the "user" functions are the ones found on phpbuilder.com. It > turns out that the sess_write rountine is NEVER called, ie. > session_registered variables aren't saved. > > I thought there was something wrong with the customer-handler but for > debugging purposes, I took out everything except things like: > > function sess_write ($key, string value) { > echo ( "sess_write was called.<br>"); > } > > and yet, it was ever called! Other functions like read, gc, destory > works great. > > However, if I change php.ini to > > register_globals = ON > > Then the above sess_write function would be called! > > Is this a known problem, or am I missing something? > > reg. > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#65452) next »