note 19140 deleted from function.session-start by irc-html

From: Date: Tue, 23 Apr 2002 00:13:40 +0000
Subject: note 19140 deleted from function.session-start by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29708@lists.php.net to get a copy of this message
Let's say, we have session stored in *files* (php.ini), we have a FreeBSD server, we have an index.php with following code: <?php startSession($user); ?> ..... The function startSession() contains following code: <? $admin_id = $user[id]; $admin_vorname = $user[vorname]; $admin_name = $user[name]; $admin_email = $user[email]; $admin_projekte = $user[projekte]; $admin_bemerkung = $user[bemerkung]; global $admin_id,$admin_vorname, [and the other...]; session_start(); session_register("admin_id", "admin_vorname", [and the other...]); ?> When you take a look on the session-file on the server, there is no variable in file saved!!!!! When you put the code of the function IN index.php, it should work perfectly. Dunno if its working on other Un*x/Win systems with functions... Crap bug.... now I'm mad :)

« previous php.notes (#29708) next »