note 75296 deleted from function.setcookie by danbrown

From: Date: Sun, 17 May 2009 17:51:03 +0000
Subject: note 75296 deleted from function.setcookie by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155031@lists.php.net to get a copy of this message
Note Submitter: jcastromail at yahoo dot es ---- You always can "emulate" a php setcookies invoking javascript. <?php echo "<script type='text/javascript'>/n"; echo "document.cookie='example=cookie'; /n"; echo "</script>/n"; ?> Using javascript to set a cookie allow you to change the cookie anytime (not only prior the body) running javascript directly in the client side. The disadvantage is the clients must support javascript.

« previous php.notes (#155031) next »