Re: [PHP4BETA] on session start

From: Date: Fri, 05 Nov 1999 21:48:43 +0000
Subject: Re: [PHP4BETA] on session start
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-5906@lists.php.net to get a copy of this message
This has been discussed earlier on the list, the solution I came up with, uh (can't remember who) was to use this code in an include file: if(!$session_is_registered("init_data") { include("session_init.inc"); } Then in "session_init.inc" just make sure you assign a value to "init_data"... something like this: session_start(); session_register("init_data"); $init_data = true; And then either include that in your php files, or use auto_include. Hope this helps, - Ben Schumacher At 06:06 PM 11/5/99 +0100, you wrote:
is it possible to automatically set session variable values when a new session is created? if not, would such a feature be implemented in the future? -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net


« previous php.version4 (#5906) next »