
Signature
L. Beaux Al-Catraz III
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Jellyroll" -- Blue Murder
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum,
a pocketknife, and a smile."
-- Robert Redford "Spy Game"
On Wed, 8 Feb 2006 14:58:28 -0600, L. Beaux Al-Catraz III
<silverbells@tacoshells.com> 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.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Oliver Wong - 09 Feb 2006 15:10 GMT
> On Wed, 8 Feb 2006 14:58:28 -0600, L. Beaux Al-Catraz III
> <silverbells@tacoshells.com> wrote, quoted or indirectly quoted
[quoted text clipped - 7 lines]
>
> 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
trippy - 09 Feb 2006 20:52 GMT
> On Wed, 8 Feb 2006 14:58:28 -0600, L. Beaux Al-Catraz III
> <silverbells@tacoshells.com> wrote, quoted or indirectly quoted
[quoted text clipped - 5 lines]
>
> The browser won't tell the server though about its leaving, right?
I don't think so but I could be wrong.
> you just have to time out.
This doesn't sound right. Server will spawn an instance of servlet, then
the servlet handles the requests that come in. Get the request, give the
info, done. (Obviously, this is greatly simplified)

Signature
trippy
mhm31x9 Smeeter#29 WSD#30
sTaRShInE_mOOnBeAm aT HoTmAil dOt CoM
NP: "Jellyroll" -- Blue Murder
"Now, technology's getting better all the time and that's fine,
but most of the time all you need is a stick of gum,
a pocketknife, and a smile."
-- Robert Redford "Spy Game"