Re: Why cookie is created?

From: Date: Mon, 08 Nov 2004 22:31:33 +0000
Subject: Re: Why cookie is created?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-201577@lists.php.net to get a copy of this message
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@gmail.com> wrote: > On Mon, 8 Nov 2004 15:56:03 -0500, Jerry Swanson <pmysql@gmail.com> 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 > >

« previous php.general (#201577) next »