Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hello everybody, I've got some troubles with a cookie and maybe
someone can help me...
this is the code I wrote

    setcookie ("css_user",$css_user,$tempo);
    setcookie ("css_user_id",$css_user_id,$tempo);

in order to set a cookie with the two variables css_user and
css_user_id; when I control the cookie values (using
print_r($_COOKIE);) everything is ok. the problem is that this cookie
is considered just like a "session" and when I close the browser it's

Where am I mistaking?!

thank you very much in advance! :)

Re: cookie

Quoted text here. Click to load it

Your cookie is set to expire on the 2nd of Jan 1970. Try adding time()
to $tempo


Re: cookie

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Re: cookie

~yby~ wrote:
Quoted text here. Click to load it

All you can do is recommend cookie expiration.  In the end, the browser  
determines when the cookie will be deleted, and there is nothing you can  
do about it.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline