cookie for lava
Started on the old forum in August 2010 · view the original in the archive · old links redirect here
TL;DR · summary of 21 replies
- login.php should use setcookie("SESSIONID", $sid, time() + 3600) to expire the cookie in one hour.
- $_SESSION can be used alongside $_COOKIE for remember me functionality, but $_COOKIE is less secure and more prone to cross-site request forgery (CSRF).
- Using both $_SESSION and $_COOKIE together for remember me login might not be advisable due to security concerns.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.