PHP remember user (cookie)
![Joveice](http://pbs-prod.linustechtips.com/monthly_2016_11/IMG_20160627_180647.jpg.fd9df66181ef345cf6707e1262353409.thumb.jpg.bedd662dce3ba97861cc6efc0a222e88.jpg)
in Programming
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
-
0
-
TatamiMatt ·
Posted in Troubleshooting0 -
Sanedish ·
Posted in Looking For Group0 -
Valley_ ·
Posted in Troubleshooting3 -
gurgeno ·
Posted in CPUs, Motherboards, and Memory1 -
17
-
SirCuppington8 ·
Posted in CPUs, Motherboards, and Memory7 -
Deniz Aycicek ·
Posted in Troubleshooting14 -
WeTuLo707 ·
Posted in CPUs, Motherboards, and Memory13 -
Voidseeker ·
Posted in Power Supplies3
-
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