note 19140 added to function.session-start
| From: | lopez at pepe-lopez dot com | Date: | Sun, 17 Feb 2002 23:17:28 +0000 |
| Subject: | note 19140 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26719@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 :)
--
http://www.php.net/manual/en/function.session-start.php
http://master.php.net/manage/user-notes.php?action=edit+19140
http://master.php.net/manage/user-notes.php?action=delete+19140
http://master.php.net/manage/user-notes.php?action=reject+19140