cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cookies

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 2 Apr 2002 13:07:13 +0200 (MET DST)

On Mon, 1 Apr 2002, Thomas P. Harty wrote:

> How do Session cookies work?

Those are cookies meant to live only while the browser lives, so that when it
exits no cookies are saved.

In libcurl, they are not treated differently than other cookies.

> I know that the server (IIS or whatever) sends the client a cookie, which
> would contain an Id or whatever. But IIS allows you to specify what happens
> when the client levaes (i.e. quits their browser). How does it know when
> you quit your browser? Is it timeout based? Or does the browser send the
> server some data saying its leaving??

IIRC, cookies without expire-date are "session" cookies.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-02