Re: Session Help

From: Date: Fri, 30 Nov 2001 14:40:28 +0000
Subject: Re: Session Help
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76224@lists.php.net to get a copy of this message
PHP automatically calls the appropiate function instead if you. But consider that the save handler is not called on individual session_register functions, only when all output is gone, and the whole session - each registered variable - must be saved. <manual> Note: The "write" handler is not executed until after the output stream is closed. Thus, output from debugging statements in the "write" handler will never be seen in the browser. If debugging output is necessary, it is suggested that the debug output be written to a file instead. </manual> ----- Original Message ----- From: "phantom" <phantom@phantomcougar.com> To: <php-general@lists.php.net> Sent: Friday, November 30, 2001 10:10 AM Subject: [PHP] Session Help | I am trying to set my session data to be stored in MySQL so I am using | session_set_save_handler() which sets the six user-level session storage | functions (which I have already defined). | | Will session_set_save_handler automatically run the appropiate storage | function when required (like when i say session_register("Variable")) | --OR-- do I specifically have to run that function | (mysql_sessions_write(SID,$Value)) from my script when I want to save | info to the session table? | | I would appreciate any scripts anyone might have that would illustrate | how this works, the PHP manual and online examples I have found just are | not cutting it. | | Thank you. phantom@phantomcougar.com | | | -- | 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 (#76224) next »