Logout in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Logout in php

I set 'email' in cookies with setcookies() and I have one session variable name 'email' how we logout a user.

8th Sep 2020, 12:22 PM
𝖆𝖙.𝖚𝕷
𝖆𝖙.𝖚𝕷 - avatar
1 Answer
+ 2
setcookie(session_name(), " ", time() - 3600); Set Timeout for cookies Or 👇 session_destroy();
8th Sep 2020, 5:22 PM
ғᴜɴ 3x
ғᴜɴ 3x - avatar