Package web2py :: Package gluon :: Module globals :: Class Session
[hide private]
[frames] | no frames]

Class Session

source code

 object --+        
          |        
       dict --+    
              |    
storage.Storage --+
                  |
                 Session

defines the session object and the default values of its members (None)

Instance Methods [hide private]
 
connect(self, request, response, db=1, tablename='web2py_session', masterapp=1, migrate=True, separate=1, check_client=True)
separate can be separate=lambda(session_name): session_name[-2:] and it is used to determine a session prefix.
source code
 
is_new(self) source code
 
is_expired(self, seconds=3600) source code
 
secure(self) source code
 
forget(self, response=1) source code
 
_try_store_in_db(self, request, response) source code
 
_try_store_on_disk(self, request, response) source code
 
_unlock(self, response) source code
 
_close(self, response) source code

Inherited from storage.Storage: __delattr__, __getattr__, __getstate__, __repr__, __setattr__, __setstate__, getfirst, getlast, getlist

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __reduce__, __reduce_ex__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

connect(self, request, response, db=1, tablename='web2py_session', masterapp=1, migrate=True, separate=1, check_client=True)

source code 
separate can be separate=lambda(session_name): session_name[-2:] and it is used to determine a session prefix. separate can be True and it is set to session_name[-2:]