Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
//1st page session_start(); $_SESSION['a']=1; //2nd page session_start(); echo $_SESSION['a'];
chrome关闭浏览器时我无法销毁会话,我尝试添加
session_set_cookie_params(0);或者session_cache_expire(1);
session_set_cookie_params(0);
session_cache_expire(1);
那些不起作用,我读了很多帖子,只是找不到解决方案。
尝试创建一个新页面来破坏你的会话
//1st page session_start(); $_SESSION['a']=1; <a href="end.php"> End Session</a> //2nd page(end.php) session_start(); session_destroy();