[aida] Cookies

Janko Mivšek janko.mivsek at eranova.si
Thu Nov 22 01:57:26 CET 2007


Hi Dirk,

Dirk Verleysen wrote:

> Do you have an example on how to use cookies with Aida ? I want a user 
> who revisites the website directly logs in to the site.

He will actually stay logged-in already, because Aida cookie will stay 
in his browser and on the other side his session will stay stored on Aida.

Otherwise look at:

- WebSessionManager findOrMakeSessionFor: aRequest, where cookie is used
   for finding existing session
- AIDASite addResponseHeadersTo:forPage:on: where setCookie header is
   put in response in case session hasn't yet a cookie.

Best regards
Janko

-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Aida mailing list