+ 2
Logout in php
I set 'email' in cookies with setcookies() and I have one session variable name 'email' how we logout a user.
1 ответ
+ 2
setcookie(session_name(), " ", time() - 3600);
Set Timeout for cookies
Or 👇
session_destroy();
I set 'email' in cookies with setcookies() and I have one session variable name 'email' how we logout a user.