On Apr 23, 2009, at 11:47 AM, Mike Orr wrote:

I have a statistics routine that logs the session ID in every request,
and then counts the number of sessions each day.  However, it fails on
one site that's all static files (served by paste.FileApp in a
controller).  Every request has a different session ID, so the number
of sessions equals the number of hits.  Do I have to actually save
something in the session in order to get a persistent session ID?
That would be writing a lot of useless files because I don't have
anything to put in the session.  (The site consists of HTML +
Javascript files generated by RoboHelp, a program from Adobe.)

Right, because Beaker won't save a session unless you ask it to. There's an auto-save mode, but even that checks for some access to the session before deciding to save it. If you turn on auto-save mode, and at least access the session per request, then it will cause it to be saved.

Cheers,
Ben

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to