Dazed and confused.  I've tried the suggestions thus far (I believe) and no
luck.  Below is the current code.  For somw reason, when I disable cookies
in my browser:

1. The session ID is NOT being passed in the URL
2. The session ID changes everytime I click on the link; probably because it
creates a new session evertime.

Suggestions?

===== Start of Code =====
<?php
session_start(); 
header("Cache-control: private"); //IE 6 Fix 
if(!$_SESSION['count']){ 
    $_SESSION['count'] = 1;
    $sid = session_id();
    echo '<p>Session is: ' . $sid . '</p>';
} else { 
    $_SESSION['count']++; 
} 
echo '<p>You have visited <? echo $_SESSION[\'count\']; ?> pages so
far!</p>';
echo '<p><a href="test.php?sid="' . $sid . '>Increment Your
Counter!</a></p>';
?>
====== End of Code ======

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to