<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - How can you determine from within CF if cookies are enabled in the browser you are using?</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_advanced?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sun, 14 Sep 2014 11:47:07 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-09-14T11:47:07Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How can you determine from within CF if cookies are enabled in the browser you are using?</title>
      <link>https://forums.adobe.com/message/6728857?tstart=0#6728857</link>
      <description>&lt;!-- [DocumentBodyStart:b4928ca2-4ad9-4df0-ba0a-7d0156fb42fe] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Enable session management in your Application file, with setClientCookies set to true. Then you can tell whether the client has cookies enabled by looking at the values in the cookie scope, by doing something like&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfif isDefined("cookie.cfid") and isDefined("cookie.cftoken")&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- cookies enabled ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfelse&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- we may assume cookies not enabled ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfif&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you are on ColdFusion 10 or 11 you should read up on the related subject of &lt;a class="jive-link-external-small" href="http://www.adobe.com/devnet/coldfusion/articles/security-improvements.html" rel="nofollow"&gt;session fixation&lt;/a&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You might wish to avoid re-inventing the wheel. If so, you could just emulate or copy &lt;a class="jive-link-external-small" href="http://www.bennadel.com/blog/730-testing-coldfusion-session-cookie-acceptance.htm" rel="nofollow"&gt;Ben Nadel's cookie test&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b4928ca2-4ad9-4df0-ba0a-7d0156fb42fe] --&gt;&lt;img src='/beacon?t=1415919208248' /&gt;</description>
      <pubDate>Sun, 14 Sep 2014 11:36:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6728857?tstart=0#6728857</guid>
      <dc:date>2014-09-14T11:36:53Z</dc:date>
      <clearspace:dateToText>1 month 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How can you determine from within CF if cookies are enabled in the browser you are using?</title>
      <link>https://forums.adobe.com/message/6728132?tstart=0#6728132</link>
      <description>&lt;!-- [DocumentBodyStart:17387699-5079-4ef3-815e-d27c96efc067] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I need to know if the user has cookies enabled when he logs into my website so I can tell him/her to enable them.&amp;nbsp; If they are not enabled, the SessionID will be lost and session vars will not work.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:17387699-5079-4ef3-815e-d27c96efc067] --&gt;</description>
      <pubDate>Sat, 13 Sep 2014 22:06:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6728132?tstart=0#6728132</guid>
      <dc:date>2014-09-13T22:06:09Z</dc:date>
      <clearspace:dateToText>2 months 4 hours ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

