[Grok-dev] Kill the session of one user

Jeffrey D Peterson bgpete at gmail.com
Thu Aug 19 11:41:25 EDT 2010


Not off the top of my head..fgrep the source eggs for session related stuff,
you might get lucky.

--
Jeffrey Peterson
bgpete3 at gmail.com


> -----Original Message-----
> From: grok-dev-bounces at zope.org [mailto:grok-dev-bounces at zope.org] On
> Behalf Of bribon
> Sent: Thursday, August 19, 2010 10:24 AM
> To: grok-dev at zope.org
> Subject: Re: [Grok-dev] Kill the session of one user
> 
> 
> Got it. I tried to delete it and couldn't get it if I do something
> like:
> 
> del ISession(self.request)['data']
> 
> However, if I try to delete the objects inside session['data'], it's
> working
> fine, like:
> 
> del ISession(self.request)['data']['user']
> 
> Do you know where Zope or Grok controls when the user is killed after
> he's
> been inactive for a while?
> 
> Thanks!
> 
> 
> Jeffrey D Peterson wrote:
> >
> > Sessions are Containers, Containers are objects, seems like you
> should
> > just
> > be able to remove it:
> >
> > del session['key_to_get_users_session']
> >
> > I haven't done it, but that's a path you could investigate.
> >
> > --
> > Jeffrey Peterson
> > bgpete3 at gmail.com
> >
> >
> >> -----Original Message-----
> >> From: grok-dev-bounces+bgpete=gmail.com at zope.org [mailto:grok-dev-
> >> bounces+bgpete=gmail.com at zope.org] On Behalf Of bribon
> >> Sent: Wednesday, August 18, 2010 3:34 PM
> >> To: grok-dev at zope.org
> >> Subject: [Grok-dev] Kill the session of one user
> >>
> >>
> >> Hello,
> >>
> >> I have two problems:
> >>
> >> I'm using ISession, IClient.... from Zope. I'd like to kill the
> session
> >> of
> >> whoever user once user is logged out. I know how to manage the
> timeout
> >> and
> >> resolution, but I haven't found out how to kill the session object
> yet.
> >> How
> >> can I make it?
> >>
> >> When one user is inactive for 15 minutes, grok or zope kills his
> >> registry,
> >> so that user has to log in again. I don't know if Zope or grok
> controls
> >> that, but I'd like to change that behavior. Any idea?
> >>
> >> Thanks,
> >>
> >> Alvaro
> >> --
> >> View this message in context: http://old.nabble.com/Kill-the-
> session-
> >> of-one-user-tp29475738p29475738.html
> >> Sent from the Grok mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> Grok-dev mailing list
> >> Grok-dev at zope.org
> >> https://mail.zope.org/mailman/listinfo/grok-dev
> >
> > _______________________________________________
> > Grok-dev mailing list
> > Grok-dev at zope.org
> > https://mail.zope.org/mailman/listinfo/grok-dev
> >
> >
> 
> --
> View this message in context: http://old.nabble.com/Kill-the-session-
> of-one-user-tp29475738p29483184.html
> Sent from the Grok mailing list archive at Nabble.com.
> 
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list