CookieLess Session Management
|
Future versions of CookieLess can be found by clicking here CookieLess The CookieLess product provides in memory session management via URL rewriting. To enable session tracking, you simply create a folder and put your objects under the folder. When accessing your objects for the first time a session will be created and your url will be rewritten. For example, if you create a CookieLessSessionManager folder called cookieless, then :
http://mysite/cookieless/index_html
would be automatically redirected and remapped to :
http://mysite/cookieless/S__sessionid/index_html
to store objects via dtml :
<dtml-call "Session.set('myVariable','somevalue')>
to access myVariable in a later page :
<dtml-var myVariable>
to ensure that the variable is taken exclusively from the Session object :
<dtml-with Session only>
<dtml-var myVariable>
</dtml-with>
Notes - If any of your objects directly under the folder begin with manage they will not be subject to Session management. Usage -Session methods :
setTimeOut(self,minutes) - set the timeout time.
creationTime(self) - returns a DateTime object set to the creation time
set(self,key,value) - stores a value in the session
clear(self) - clears all session variables
keys(self) - returns a list of session variable keys
get(self,key) - returns the value associated with a particular key
items(self) - a copy of the list of (key,value) pairs
has_key(self, key) - returns 1 if session has a key, else 0
Session variables :
accessedTime - the last time a session was accessed
timeout - the time in minutes
Session - exposes the SessionInstance more easily to dtml
SESSIONROOT - The absolute url concatenated with the session id
Session Folder Properties :
expiryURL - optional URL to which Session timeouts will be redirected.
BypassSessionMgr - When selected turns off CookieLess Session Management. (Use with caution. Should not be used on a live site)
timeout - the time in minutes before a session expires.
Known Bugs -
Changes -
|
|
Available Releases
| Version | Maturity | Platform | Released |
|---|---|---|---|
| 0.0.6b | Development | 2001-04-19 11:13:26 | |
| CookieLess006b.tgz (7 K) | All | md5 | |
| 0.0.5b | Development | 2000-11-06 09:01:59 | |
| CookieLess005b.tgz (6 K) | All | md5 | |
| 0.0.4b | Development | 2000-10-12 08:56:17 | |
| CookieLess004b.tgz (6 K) | All | md5 | |
| 0.0.3b | Development | 2000-10-10 10:52:58 | |
| CookieLess003b.tgz (6 K) | All | md5 |