PHP remember user (cookie)
By
Joveice
in Programming
in Programming
Go to solution
Solved by leonfagan71,
Just now, Joveice said:Is this all I need to do?
yes, basically.
session_set_cookie_params(3600 * 24 * 7);
needs to go just before the first
session_start();
it cannot go after it, it must be before the session is started.
It will then have the session on the server and the client for 7 days.
-
Featured Topics
-
Topics
-
MythicalButt ·
Posted in Troubleshooting1 -
0
-
1
-
DrCrio ·
Posted in CPUs, Motherboards, and Memory5 -
3
-
2
-
3
-
GHOSTX1 ·
Posted in Hobby Electronics1 -
Mysterion04 ·
Posted in Operating Systems0 -
3
-
-
play_circle_filled
Latest From ShortCircuit:
I'm a Huge Sucker for a Cool Gimmick - Epomaker DynaTab 75X & DynaTab 75
-
play_circle_filled
Latest From Mac Address:
The Apple Vision Pro Leaves a Mark (but not the right kind)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now