session_id()的使用
- PHP code
<!---ecms Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php ob_start('ob_gzhandler'); session_save_path('2;D:/sessionFile/sessionFile'); @session_start(); echo 'Your session identification number is ' . session_id("967d992a949114ee9832f1c11c");?>
为什么在session_id(
5本文来源gao!daima.com搞$代!码#网#
搞代gaodaima码
)中输入一个参数却不能替代当前运行的SID?与没有设置参数的效果一样。。
——解决方案——————–
设置 sessionid 要在 session_start(); 之前