NameSilo

Anyone know stuff about cookies?

Spaceship Spaceship
Watch
Impact
20
hi im creating a log in system for a cms im making thing is tho id to add a "remeber me option" coz everytime they log out they have to log back in


id like to be able to either a) extend the time there logged in or b) have a remember me option

anyone got any ideas?

cheers
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
I'm not that familiar with cookies in PHP, I think that's how you're wanting to do it, is with PHP?. It shouldn't be to difficult to do what you're wanting with PHP.

This should show you how to set and retrieve cookies with PHP and give you some nice examples http://us4.php.net/setcookie . It should also show you how to set them to expire after a certain amount of time.
 
0
•••
thanks! looks like ive found what i need
 
0
•••
that worked a treat! now the users are remebered for an hour
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back