Cookies

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cookies

Dirk Verleysen-2
Een HTML-bijlage is verwijderd...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20071121/fb0c8e29/attachment.htm 
------------- volgend deel ------------
Een niet-tekst bijlage is verwijderd...
Naam: dirk.vcf
Type: text/x-vcard
Grootte: 239 bytes
Omschrijving: niet beschikbaar
Url : http://lists.aidaweb.si/pipermail/aida/attachments/20071121/fb0c8e29/attachment.bin 

Reply | Threaded
Open this post in threaded view
|

Cookies

Janko Mivšek
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