Why cookie is created?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't use cookie for my page. I use session. As I understand cookies
don't create any files on user  computer. I have this code below on my
page.
When I access this page immediately cookie is created on my computer.
Any ideas why?


<?php
session_start();
$referral = $_SESSION['referral'];
if(empty($referral)) {
        $referral = $_SERVER['QUERY_STRING'];
        $_SESSION['referral'] = $referral;
}

?>

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux