Seaside
Seaside copied to clipboard
Add documentation on Session tracking
It would be great to have a page in the wiki with a description, the pro and cons of each session tracking strategy and also an explanation of how to change the session tracking programmatically.
If I find the time to learn enough on that I might try to propose a page, but I don't know if I'll have the time.
Yes, this comes up frequently. The classes have a few lines of comments but don't go into the pros and cons.
I succeeded to change the tracking strategy using this piece of code:
MyApp class>>initialize
^ (WAAdmin register: self asApplicationAt: self appName)
preferenceAt: #sessionClass put: MDLDemoSession;
preferenceAt: #trackingStrategy put: WACookieForBrowserIPForCrawlerTrackingStrategy new;
addLibrary: JQDeploymentLibrary;
addLibrary: MDLLibrary;
addLibrary: MDLDemoLibrary;
yourself
Yes, this looks good.