Jump to content

Archived

This topic is now archived and is closed to further replies.

xyn

Cookies problem...

Recommended Posts

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
cookie...
[code=php:0]setcookie ("remme", "remember", time()+60*60*24*30, FALSE, TRUE);[/code]

Share this post


Link to post
Share on other sites
Make the cookie for 30 days

Next time they log in, reset the cookie another 30 days

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.