lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev thoughts on cookie file w/multiple sessions


From: Klaus Weide
Subject: Re: lynx-dev thoughts on cookie file w/multiple sessions
Date: Thu, 19 Nov 1998 10:45:42 -0600 (CST)

On Wed, 18 Nov 1998, Leonid Pauzner wrote:

> > As things are presently:
> 
> >     Two sessions, A and B are running. Both load the same set of cookies
> >     from COOKIE_FILE.
> 
> >     Session A gets a new cookie from some site, then exits, writing all
> >     the original cookies and the new cookie to COOKIE_FILE.
> 
> >     Session B quits, overwriting COOKIE_FILE with all the original
> >     cookies, but blowing away the new cookie that session A received.
> 
> > So here's my thought -- prior to writing cookies in memory to COOKIE_FILE,
> > Lynx should *reread* COOKIE_FILE, ignoring any cookies that are already in
> > memory, but adding cookies from the file that are not in memory.
> 
> > The only thing coming to mind so far that could be a problem here would be
> > getting two cookies with the same 'name' attribute from a server in two
> > different sessions (two unique identifiers from advertising sites?), in
> > which case the one which is written to COOKIE_FILE first (thus read into
> > memory in the other Lynx session, overwriting the existing one) will be
> > maintained, and the others dropped.
> 
> Remote server may change cookie expiration date,
> which date should be correct from session A or from session B?

I suggest that merging cookies from two sessions while they are running
is a bad idea.  Cookies are session identifiers, they are often used
to tell two sessions apart, right?

     Klaus

reply via email to

[Prev in Thread] Current Thread [Next in Thread]