<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Re: [Seaside] sharing sessions through links..</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Because the test is such that it feeds browser a cookie and monitors if it receives it back, which would indicate browser supports them.<BR>
<BR>
Cheers!<BR>
<BR>
-Boris (via BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org <seaside-bounces@lists.squeakfoundation.org><BR>
To: Seaside - general discussion <seaside@lists.squeakfoundation.org><BR>
Sent: Tue Oct 28 14:05:15 2008<BR>
Subject: Re: [Seaside] sharing sessions through links..<BR>
<BR>
Nevin Pratt wrote:<BR>
> Boris Popov wrote:<BR>
>> Nevin,<BR>
>><BR>
>> It already does, see senders of #checkCookiesField for more detail,<BR>
>><BR>
>> Cheers,<BR>
>><BR>
>> -Boris<BR>
>><BR>
>> <BR>
> Ah, OK! A sender of #checkCookiesField is WASession>>performRequest:,<BR>
> and the browser check seems to be done as follows:<BR>
><BR>
> aRequest fields includesKey: self checkCookiesField<BR>
><BR>
> Thanks!<BR>
><BR>
> Nevin<BR>
<BR>
WASession>>useSessionCookie<BR>
^ cookiesEnabled<BR>
and: [self application useSessionCookie]<BR>
<BR>
<BR>
So, apparantly 'cookiesEnabled' is exactly what I want, and I don't have<BR>
to do the browser check code I mention above.<BR>
<BR>
However, cookiesEnabled is set to 'false' under the following conditions:<BR>
<BR>
((aRequest fields includesKey: self checkCookiesField)<BR>
and: [aRequest cookies isEmpty])<BR>
ifTrue: [cookiesEnabled := false].<BR>
<BR>
My question is: why do we care if 'aRequest cookies isEmpty'? Why<BR>
should that have anything to do with whether or not the browser accepts<BR>
cookies?<BR>
<BR>
Nevin<BR>
_______________________________________________<BR>
seaside mailing list<BR>
seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
</FONT>
</P>
</BODY>
</HTML>