Hi all,
I have a page called session_test1.php
<?
session_start();
session_register('cart_id');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Test Sessions:<br>
<br>
<a href="session_test2.php">Next</a>
</body>
</html>
What i want to do is pass the session variable to session_test2.php but is is not echoing the variable.
It displays in the url (eg. session_test2.php?sess=23r7ff8cv99xvc89cv8cvv1 but not the page itself.
Here is the code for session_test2.php:
<?
session_start();
$cart_id = $_SESSION['cart_id'];
echo "$cart_id";
?>
Any ideas why?
Cheers,
micmac