[Seaside] cookies

Miguel Enrique Cobá Martinez miguel.coba at gmail.com
Mon Sep 21 22:01:13 UTC 2009


Is with a redirect the only way to set a cookie in Seaside?
The WACookieTest class says:

add
	| response |
	self session respond: [ :url |
		response := self session redirectResponseFor: url.
		response addCookie: (WACookie key: key value: value).
		response ].
	key := value := nil

Also the method
self session redirectWithCookie: (WACookie key: #kdy value: var).


Can't I add a cookie to a given response without asking the browser to
make a new request?


-- 
Miguel Cobá
http://miguel.leugim.com.mx



More information about the seaside mailing list