Re: Why do Sessions use Cookies?
| From: | Peter Brodersen | Date: | Sat, 03 Dec 2005 02:05:11 +0000 |
| Subject: | Re: Why do Sessions use Cookies? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226801@lists.php.net to get a copy of this message | ||
On Fri, 2 Dec 2005 20:43:48 -0500, in php.general mba2000@ioplex.com
(Michael B Allen) wrote:
>Why do sessions use cookies? Isn't a session just a container associated
>with the user's socket?
No. Even though mechanisms such as keepalive exists they are not
reliable for tracking a user. A client can still open multiple HTTP
connections to the same host even when using keepalive.
Furthermore we would like the session to survive the smallest hickups
(e.g. disconnects, TCP RSTs, ...).
--
- Peter Brodersen