Re: Why cookie is created?

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

 



I don't want to use cookies.
I want to use session. When I use this code. It stores data on the harddrive.

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


On Mon, 8 Nov 2004 16:19:49 -0600, Greg Donald <destiney@xxxxxxxxx> wrote:
> On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson <pmysql@xxxxxxxxx> wrote:
> > I don't use cookie for my page. I use session. As I understand cookies
> > don't create any files on user  computer.
> 
> Your understanding is incorrect.  Using cookies does indeed place
> files on the user's computer.  That's what a cookie is, a file on the
> user's computer, created by the web client.
> 
> --
> Greg Donald
> Zend Certified Engineer
> http://gdconsultants.com/
> http://destiney.com/
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
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