Re: Why cookie is created?
| From: | John Nichel | Date: | Mon, 08 Nov 2004 21:01:27 +0000 |
| Subject: | Re: Why cookie is created? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201569@lists.php.net to get a copy of this message | ||
Jerry Swanson wrote:
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?As soon as you call session_start(), you are 'given' a session id. To track this id from page to page throughout you site, it is stored in a cookie by default. It's all in the manual... http://us4.php.net/session -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com