Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP sessions


ghost's Avatar
0 0

I have made a PHP/MySQL login script that sets some session variables when you sucessfully log in. If the browser is closed, you have to log in again, is there any way I can make it so that you only have to login again if you logout?


ghost's Avatar
0 0

Sessions are destroyed as soon as the browser is closed, if you would like the user to stay logged in, you woul have to use some other method such as cookies.


ghost's Avatar
0 0

ok, thanks.