Scott: Thanks; this is a helpful idea.  The next step after reading the
sessions, though, is to write a value into those that match certain
criteria, and that sounds dangerous just to retrieve it from where it lives
on the disk.

I'll poke around in SessionStore.py to see if there's something I can use
there.

Thanks, and
Cheers!

-----Original Message-----
From: Scott Russell
To: Hancock, David (DHANCOCK); '[EMAIL PROTECTED]'
Sent: 4/26/04 5:41 PM
Subject: Re: [Webware-discuss] Standalone scripting

I've never done this, but I suspect you want to dig around in
/WebKit/SessionStore.py. I think a session file is just a pickled
Session object - unpickle it and it should be ready to go.

If that was your question - I'm not sure what you wanted the application
session dictionary keys for, but I assume it was to retrieve a session.

On Mon, 2004-04-26 at 17:11, Hancock, David (DHANCOCK) wrote:
> I'd like to run a script from the command line to look at sessions (we
use
> File as the storage for sessions), but I'm a tiny bit stuck. I know
how to
> do it from a servlet, because the servlet already has enough context
to do
> something like:
> 
>    self.application().sessions().keys()
> 
> But I am blanking out on how to create sufficient context in a script
> running outside of the application server to be able to do that.
> 
> I'd be grateful for a code snippet, an example script, or just an idea
of
> where to look for more information.
> 
> Thanks, and
> Cheers!
> --
> David Hancock
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to