Robert, I haven't tried wget in this context, however from my previous
experience with session cookies, your session lasts until you stop
using the cookie.txt file. I assume the server could stop accepting
it, but I don't think that would be a default setting and they might
have to do something special for it to happen. See what happens across
a restart of the server (probably around midnight, maybe daily,
possibly weekly, or possibly not).

My guess is your session cookies are good as long as you don't "quit
your browser", which in this context is "stop using cookie.txt".

--Don Ellis


On Fri, Nov 21, 2008 at 4:30 PM, Robert Citek <[EMAIL PROTECTED]> wrote:
>
> What is the lifetime of a session cookie on the server?
>
> I've been using wget to grab some data from a web server.  The process
> I've been using is similar to what is on wikipedia[1]:
>
> wget --keep-session-cookies --save-cookies=cookie.txt http://first_page
> wget --load-cookies=cookie.txt http://page_0001
> wget --load-cookies=cookie.txt http://page_0002
> wget --load-cookies=cookie.txt http://page_0003
> ...
>
> If I were to use a web browswer such as Firefox, then the cookie would
> go away as soon as I close my browser.  However, since I'm using wget
> and saving session cookies with --keep-session-cookies, I am able to
> keep getting one page after the other.  Even after several hours I can
> keep using the same cookie.
>
> When will this cookie expire?  Or more specifically, when will the
> server no longer accept this cookie?
>
> [1] http://en.wikipedia.org/wiki/Wget#Advanced_usage
>
> Regards,
> - Robert
>

--~--~---------~--~----~------------~-------~--~----~
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
More options: http://groups.google.com/group/cwelug
-~----------~----~----~----~------~----~------~--~---

Reply via email to