Jump to content

Sessions - Php Konfigurieren


sebbo2

Recommended Posts

Hello folks,
I have the following problem… I have a small PHP script which uses session management (session_start ()). So far so well. Problem with renewed calls of the side I get evertime a NEW Session_Id, instead of using the old, which was already sent as Cookie to the Browser. The strange is however, I gave the Script to a friend, he had been running it ran it on his test server perfectly, means sessionID remains. Therefore it must have to do something with my Settings of the PHP.ini. I did not changed anything at the standard settings of the PHP.ini actually.

Here is the small testscript:

<?php session_start();
if (!isset($_SESSION["zaehler"]))
{
$_SESSION["zaehler"]=0;
}
$_SESSION["zaehler"]++;
?>

<html>
<head>
<title>Unbenanntes Dokument</title>
</head>

<body>
<a href="samepage.php?<?php print session_id()?>">next</a>
Anzahl Seitenwechsel: <?php echo $_SESSION["zaehler"]."\n"; ?>
</body>
</html>

Many thanks in advance for every hint and help.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.