Hi, i am new to sessions but i was trying to test a very simple create session script:
<?php session_start(); ?>
<html><head><title>Session - Starter</title></head><body>
<a href="index2.php?<?php echo(SID); ?>">Index Page 2</a>
<hr>
<? echo(SID); ?>
</body>
</html>
but when it runs, the link to index2.php is followed by the session name twice eg:
instead of /index2.php?PHPSESSID=4aaac429e35c1984ca54408c1db98431
it displays /index2.php?PHPSESSID=4aaac429e35c1984ca54408c1db98431&PHPSESSID=4aaac429e35c1984ca54408c1db98431
any ideas why? pardon my coding if it is wrong.
Also just a quickie, how do i change the name of the variable, instead of
/index2.php?PHPSESSID=.....
have
/index2.php?id=......
Thanks in advance
Matt