note 78853 rejected from function.session-start by nlopess
| From: | nlopess@php.net | Date: | Wed, 31 Oct 2007 21:25:53 +0000 |
| Subject: | note 78853 rejected from function.session-start by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131893@lists.php.net to get a copy of this message | ||
Note Submitter: oskard at nichiai dot com
----
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