<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Oh, really?<br>
<br>
How exactly does 'aRequest cookies isEmpty' do that?<br>
<br>
Nevin<br>
<br>
<blockquote
cite="mid:CBE458BB46D12C48A467980CEDA34121019FA87F@Pondo.yvr.png"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator"
content="MS Exchange Server version 6.5.7653.38">
<title>Re: [Seaside] sharing sessions through links..</title>
<!-- 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: <a class="moz-txt-link-abbreviated" href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>
<a class="moz-txt-link-rfc2396E" href="mailto:seaside-bounces@lists.squeakfoundation.org"><seaside-bounces@lists.squeakfoundation.org></a><br>
To: Seaside - general discussion
<a class="moz-txt-link-rfc2396E" href="mailto:seaside@lists.squeakfoundation.org"><seaside@lists.squeakfoundation.org></a><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>
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a moz-do-not-send="true"
href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font>
</p>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
<br>
</body>
</html>