[plug] Cookie problems ..

Leon Blackwell leon at lostrealm.com
Tue Feb 18 15:21:52 WST 2003


On Tue, Feb 18, 2003 at 02:59:36PM +0800, Mark J Gaynor wrote:
>         SetCookie("ad_name",$my_user,"", "/");

RTFM:
---8<---
The expire and secure arguments are integers and cannot be skipped with
an empty string. Use a zero (0) instead.
---8<---

Try using setcookie('ad_name', $my_user, 0, '/');
(always try to use single quotes when you can too)


-- 
 Leon Blackwell                | Spoon-feeding, in the long run,
 http://www.lostrealm.com/     | teaches us nothing but the shape of
 jabber:lionfire at lostrealm.com | the spoon.
                               | -- E. M. Forster



More information about the plug mailing list