cookie for lava

Started on the old forum in August 2010 · view the original in the archive · old links redirect here

#cookie #remember-me-login #session

21 replies · 2,964 views · started 16 years ago · 1 min read

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.

14 participants
tkreturns Developer · 98 posts #22

lava is not secured for cookies, dnt be mistaken 😛

ASK FOR HELP

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close