$_SESSION question
| From: | Jochen Kächelin | Date: | Fri, 15 Nov 2002 01:18:38 +0000 |
| Subject: | $_SESSION question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-124551@lists.php.net to get a copy of this message | ||
I made a test with the Phoenix-Browser and ENABLE COOKIES = OFF in
the Privacy configuration of the browser.
my index.php:
<?
session_start();
$_SESSION["test"] = "test";
echo "<a href='index2.php'>index2.php</a>\n";
?>
my index2.php:
<?
session_start();
echo $_SESSION["test"];
?>
My php.ini:
session.use_trans_sid = 0
on index2.php there's no result -> $_SESSION["test"] is not set.
when I enable
session.use_trans_sid = 1
the session_id is added to the url, but php.ini says not to use
session.use_trans_sid = 1 for security reasons.
How can I process $_SESSION variables if the user disables cookies
and session.use_trans_sid = 0 ?
--
Jochen Kaechelin