Update of /cvsroot/mod-c/ehtml/include
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4084/include
Modified Files:
Session.h
Log Message:
* Added SessionID(MemBuf& mb) constructor.
* Added bool Session::Expired() method.
Index: Session.h
===================================================================
RCS file: /cvsroot/mod-c/ehtml/include/Session.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Session.h 8 Sep 2006 14:30:58 -0000 1.9
--- Session.h 12 Sep 2006 00:26:09 -0000 1.10
***************
*** 50,53 ****
--- 50,54 ----
SessionID();
SessionID(const SessionID& id);
+ SessionID(const MemBuf& mb);
SessionID(void* b, size_t nbytes, bool dup = false);
~SessionID();
***************
*** 311,314 ****
--- 312,320 ----
time_t Expires(void) { return _expires; }
+ /**
+ * Checks if current session is expired.
+ */
+ bool Expired(void) { return (_expires != 0) && (_expires < time(NULL)); }
+
//{set,get,unset}Value: use operator[](), find(), erase().
|