在header重定向后,注册的session居然消失了?! 找到解决办法: After the Header redirect you need to exit the PHP script: header(Location: /); exit(); 参考:http://stackoverflow.com/questions/2037316/php-session-destroyed-lost-after-header
在header重定向后,注册的session居然消失了?!
找到解决办法:
After the Header redirect you need to exit the PHP script:
header("Location: /"); exit();
参考:http://stackoverflow.com/questions/2037316/php-session-destroyed-lost-after-header