Left Quote    Black holes are where God divided by zero.
- Steven Wright    
Right Quote
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply

        Viewing Topic: member system - login.php setcookie
  This user is offline  drew
  Subject: "member system - login.php setcookie" Posted: @ 8:18 am on Dec 04 2005   
Member #: 112
Rank: user - (4)
Since: 12/03/05
Posts: 4

setcookie('logi n_cookie', $joined, 2147483647, '/', .www.yoursite.c om');

should be something like:
setcookie('logi n_cookie', $joined, time()+60*60*15 , '/', .www.yoursite.c om');

http://us2.php. net/setcookie time()+60*60*24 *30 will set the cookie to expire in 30 days. If not set, the cookie will expire at the end of the session (when the browser closes).

    Viewed: 3,666 Times | Reply to This | To top
Viewing Page: 1 of 1

You must be logged in to post on the forums. Login or Register

"" Copyright © 2002-2021; All rights lefted, all lefts righted.
Privacy Policy