Re: session Objects
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Thu, 09 Feb 2006 15:10:28 GMT
"Roedy Green" <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx> wrote in
message news:bmplu1t7j0h8m9328i7h5ps79uaqcpj5nl@xxxxxxxxxx
On Wed, 8 Feb 2006 14:58:28 -0600, L. Beaux Al-Catraz III
<silverbells@xxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :
When a browser hits your site, session starts.
When the browser leaves, session ends.
The browser won't tell the server though about its leaving, right?
you just have to time out.
I don't know about JSP, but in the PHP world, the page is only sent to
the browser once the code has finished executing. So timing-out in the
traditional sense is not even an option, as by the time the user *STARTS*
downloading the HTML, the script has already finished executing.
What is usually done in PHP is to check on the *next* request whether
there's any left-over work to be done from the previous request. Note that
this "next request" might not be from the same client as the one that made
the previous request.
Garbage collection for session files, for example, is usually randomly
done 1 out of 10 times at the beginning of every request. So on average,
after every 10 requests made, the PHP engine will search the session
directory and delete all the session files older than, say, 20 minutes, for
ALL users; not just the user who made the request that invoked the PHP
engine in the first place.
- Oliver
.
- References:
- session Objects
- From: morc
- Re: session Objects
- From: Oliver Wong
- Re: session Objects
- From: L . Beaux Al-Catraz III
- Re: session Objects
- From: morc
- Re: session Objects
- From: L . Beaux Al-Catraz III
- Re: session Objects
- From: Roedy Green
- session Objects
- Prev by Date: Re: Book still relevant? "Essential Java Style"
- Next by Date: Re: Most Java apps are flawed on my system
- Previous by thread: Re: session Objects
- Next by thread: Re: session Objects
- Index(es):
Relevant Pages
|