We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Cookie Problem

Development and Programming

datapositive's avatar
datapositive
14 posts
15 years ago
datapositive's avatar datapositive

I have a custom module that write a cookie (using setcookie). It is being written correctly (xxx=1).

I am reading this cookie from a template that has php enabled (see below)

<? if ( !isset($_COOKIE["xxx"]) or $_COOKIE["xxx"] != "1" )  {?>  
do something...
<? } ?>

I tested this code on my staging server and it works fine there but on the live site the condition always returns “true” even if the value of cookie is “1”. Please help.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.