xyn Posted September 20, 2006 Share Posted September 20, 2006 Hey Guys,I was wondering if there was a way of making my cookie codeNever expire, it's for my login, I wanted to allow people toenable "remember me" and their username will be saved butthey will always need to put their password in after they logout.or they become inactive...If not, Would the below code work correctly to make a 30 Dayscookie...[code=php:0]setcookie ("remme", "remember", time()+60*60*24*30, FALSE, TRUE);[/code] Quote Link to comment Share on other sites More sharing options...
onlyican Posted September 20, 2006 Share Posted September 20, 2006 Make the cookie for 30 daysNext time they log in, reset the cookie another 30 days Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.