Hi, I have a PHP file containing the code below. It works great when all default setting exist in IE; each time I click on refresh, the session variable is incremented and displays on the screen. If I change my browsers setting to block all cookies, my session variable appears not to increment and refreshing the screen displays the same text all the time. Q1. Is this because sessions use session cookies and IE blocks these at high security? Q2. I was told that if cookies are turned off, there is a way to use the session ID variable to accomplish what I want instead of cookies. How can I do this OR please point me to an easy tutorial. Thanks, Don ====== Start of code ====== <?PHP session_start(); header("Cache-control: private"); //IE 6 Fix if(!$_SESSION['count']){ $_SESSION['count'] = 1; } else { $_SESSION['count']++; } ?> You have visited <? echo $_SESSION['count']; ?> pages so far! ======= End of code =======
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php