Jump to content


Cookies problem...

  • Please log in to reply
1 reply to this topic

#1 xyn

  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 20 September 2006 - 08:43 PM

Hey Guys,
I was wondering if there was a way of making my cookie code
Never expire, it's for my login, I wanted to allow people to
enable "remember me" and their username will be saved but
they 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 Days
setcookie ("remme", "remember", time()+60*60*24*30, FALSE, TRUE);

#2 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 20 September 2006 - 09:13 PM

Make the cookie for 30 days

Next time they log in, reset the cookie another 30 days
Tell me the problem, I will try tell you the solution

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users