RE: [PHP-DB] Question: Putting separate form elements into an array
| From: | H. J. Wils | Date: | Sun, 17 Oct 2004 13:35:59 +0000 |
| Subject: | RE: [PHP-DB] Question: Putting separate form elements into an array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-36868@lists.php.net to get a copy of this message | ||
Hi everybody,
For quite a while i'm struggeled with my session. It doesn't seem to work, can anyone help me?
This is my code:
page 1:
session_start();
$_SESSION["test"] = "tryin...";
if (isset($_SESSION["test"]))
{
echo "<a href='session2.php'>next page</a>";
echo "<br>".session_id();
}
page 2:
session_start();
if (isset($_SESSION["test"]))
{
echo $_SESSION["test"];
}else
{
echo "No sessionvariable found..";
}
echo "<br>".session_id()."<br>";
On page two, there's always the 'no sessionvariable found...'-message, further the session id also changes... i dont understand what i am doing wrong...
_________________________________________________________________
Play online games with your friends with MSN Messenger http://messenger.msn.nl/