<!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">&lt;seaside-bounces@lists.squeakfoundation.org&gt;</a><br>
To: Seaside - general discussion
<a class="moz-txt-link-rfc2396E" href="mailto:seaside@lists.squeakfoundation.org">&lt;seaside@lists.squeakfoundation.org&gt;</a><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>
<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>