In the current CVS snapshot, session.invalidate() is still
unimplemented.  The stuff below looks resonable to me, I 
was wondering if it could be added?

Best,

Clark

----- Forwarded message from David O'Callaghan <[EMAIL PROTECTED]> -----
From: "David O'Callaghan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [Webware-discuss] Session invalidate
Date: Tue, 17 Jul 2001 10:20:10 +0100

Hi,

I need to be able to invalidate sessions programmatically to log a user out
of our system. Does the following look like a reasonable implementation for
the invalidate method in the Session class?

 def invalidate(self):
  ''' Invalidates the session. '''
  self._lastAccessTime = 0
  self._values={}

Or am I missing something big?

Regards,

David O'Callaghan

--
"And that no man might buy or sell, save he that had the mark,
 or the name of the beast, or the number of his name."
        --Microsoft Passport EULA / Revelations 13:17



_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

----- End forwarded message -----

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to