JamesManke
Programmer
I am having trouble sending PHPSESSID through the URL.
Here is my code...
<?php
session_start();
$_SESSION['favcolor'] = 'green';
$_SESSION['animal'] = 'cat';
$_SESSION['time'] = time();
echo '<br /><a href="page2.php?PHPSESSID=$_PHPSESSID">PAGE 2</a>';
?>
When I click "PAGE2" it obviuosly sends me to page 2, but in the URL it reads "page2.php?PHPSESSID=$PHPSESSID" Should $PHPSESSID not be a number??? I need this number because I am sending the session ID to another domain.
Thanks for your help
James
Here is my code...
<?php
session_start();
$_SESSION['favcolor'] = 'green';
$_SESSION['animal'] = 'cat';
$_SESSION['time'] = time();
echo '<br /><a href="page2.php?PHPSESSID=$_PHPSESSID">PAGE 2</a>';
?>
When I click "PAGE2" it obviuosly sends me to page 2, but in the URL it reads "page2.php?PHPSESSID=$PHPSESSID" Should $PHPSESSID not be a number??? I need this number because I am sending the session ID to another domain.
Thanks for your help
James