From: Scott R. <sc...@to...> - 2004-04-26 21:41:12
|
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 > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss |