note 78853 added to function.session-start
| From: | oskard at nichiai dot com | Date: | Wed, 31 Oct 2007 02:28:14 +0000 |
| Subject: | note 78853 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131840@lists.php.net to get a copy of this message | ||
I'm getting really desperated with this...
Two very simple pages:
<?php
start_session();
$_SESSION['Oskar']="Oskar";
?>
<a href="php2.php">Session test</a>
?>
Second page (php2.php):
<?php
start_session();
echo ($_SESSION['Oskar'];)
?>
Error: Undefined index: Oskar in ....
In the server, the cookies are stored correctly in the folder configured in php.ini.
The curious thing: enabling session.use_trans_sid in php.ini makes it work, but shouldn't be
the solution, I don't want to pass the session ID in the url everytime.
Any ideas?
Thank you very much for your time,
Oskar
----
Server IP: 61.195.146.164
Probable Submitter: 122.103.236.121
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/78853
Del: integrated -- https://master.php.net/note/delete/78853/integrated
Del: useless -- https://master.php.net/note/delete/78853/useless
Del: bad code -- https://master.php.net/note/delete/78853/bad+code
Del: spam -- https://master.php.net/note/delete/78853/spam
Del: non-english -- https://master.php.net/note/delete/78853/non-english
Del: in docs -- https://master.php.net/note/delete/78853/in+docs
Del: other reasons-- https://master.php.net/note/delete/78853
Reject -- https://master.php.net/note/reject/78853
Search -- https://master.php.net/manage/user-notes.php