session_start();
header("Cache-control: private"); // IE 6 Fix

$user_quotes = $_SESSION['user_quotes'];

if (!isset($user_quotes) || $user_quotes >= count($quote_result) - 1) {
   $user_quotes = 0;
} else {
   $user_quotes++;
}

echo "<pre>";
echo $_SESSION['user_quotes'] . "\n";
print_r($_SESSION);
echo "Session Id:" . session_id();
echo "</pre>";

Gives this in Konqueror:

Array
(
)
Session Id:bfe78a51438a2e4620092f4333c9389a

and in firefox:

2
Array
(
    [count] => 10
    [user_quotes] => 2
)
Session Id:e8f10e77b0cbb6dc8650e365ed7352f6

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

Reply via email to