[HELP] I need cookie help! ;(

Status
Not open for further replies.

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,195
3,906
Hey,

Er, I found that I could do my user system using cookies which would make it better, How would I make it so the session is lets say 30 minutes?

PHP:
setcookie('logged_in', "logged_out", time() - );

I'm stuck on the time D; - I probably set this wrongly, But I've been up all night + drinking ;D.
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,926
3,921
I'd personally recommend going with PHP sessions as cookies can easily be modified.

Regardless, this is how you'd do it:
PHP:
<?php
setcookie('logged_in', $data, time() + 1800);
?>
 
Status
Not open for further replies.

Users who are viewing this thread

Top