<!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 &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Tue Oct 28 14:05:15 2008<BR>
Subject: Re: [Seaside] sharing sessions through links..<BR>
<BR>
Nevin Pratt wrote:<BR>
&gt; Boris Popov wrote:<BR>
&gt;&gt; Nevin,<BR>
&gt;&gt;<BR>
&gt;&gt; It already does, see senders of #checkCookiesField for more detail,<BR>
&gt;&gt;<BR>
&gt;&gt; Cheers,<BR>
&gt;&gt;<BR>
&gt;&gt; -Boris<BR>
&gt;&gt;<BR>
&gt;&gt;&nbsp;&nbsp;<BR>
&gt; Ah, OK!&nbsp; A sender of #checkCookiesField is WASession&gt;&gt;performRequest:,<BR>
&gt; and the browser check seems to be done as follows:<BR>
&gt;<BR>
&gt;&nbsp;&nbsp;&nbsp; aRequest fields includesKey: self checkCookiesField<BR>
&gt;<BR>
&gt; Thanks!<BR>
&gt;<BR>
&gt; Nevin<BR>
<BR>
WASession&gt;&gt;useSessionCookie<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^ cookiesEnabled<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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>
&nbsp;&nbsp;&nbsp; ((aRequest fields includesKey: self checkCookiesField)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; and: [aRequest cookies isEmpty])<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ifTrue: [cookiesEnabled := false].<BR>
<BR>
My question is: why do we care if 'aRequest cookies isEmpty'?&nbsp; 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>