PHP4 SESSIONS
| From: | AJDIN BRANDIC | Date: | Tue, 10 Oct 2000 09:50:01 +0000 |
| Subject: | PHP4 SESSIONS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19307@lists.php.net to get a copy of this message | ||
I looked at tutorials on PHP4 and sessions and from there I learned that
is cookies are disabled then I cannot use <a href="<?
page.php3?PHPSESSID=$PHPSESSID ?>">Next</a>. But I need to use GET/Post
methodes to pass sessionID from page to page. Here is what I have tried
but it deosn't work with cookies off. Here is the code, can someone put
me on the right track here.
I have tried get and post.
Thanks Ajdin
<?php
session_start();
print($counter);
print($PHPSESSID);
$counter++;
session_register("counter");
?>
<html>
<body>
<form action="test.php3" method="get">
<input type="hidden" name="PHPSESSID" value="<? $PHPSESSID
?>">
<input type="submit" value="Next">
</form>
</body>
</html>