Seaside icon indicating copy to clipboard operation
Seaside copied to clipboard

Add documentation on Session tracking

Open jecisc opened this issue 5 years ago • 3 comments

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.

jecisc avatar Feb 27 '19 10:02 jecisc

Yes, this comes up frequently. The classes have a few lines of comments but don't go into the pros and cons.

marschall avatar Feb 27 '19 16:02 marschall

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

jecisc avatar Feb 27 '19 16:02 jecisc

Yes, this looks good.

marschall avatar Feb 27 '19 16:02 marschall