Search
Left Quote    It is possible to store the mind with a million facts and still be entirely uneducated.
- Alec Bourne    
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: 2,830 Times | Reply to This | To top
Viewing Page: 1 of 1



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








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank