Home  >  Article  >  Backend Development  >  php如何通过sessionid获取session

php如何通过sessionid获取session

WBOY
WBOYOriginal
2016-06-13 13:21:301441browse

php怎么通过sessionid获取session
哪位大大能贴份代码最好

------解决方案--------------------
你的 t2.php 页面并没有 session_start(); 开启session.
------解决方案--------------------
如楼上所言,

t2.php也需要开启session:
@Session_start();
var_dump(session_id($_GET['SESSIONID']));
?>
------解决方案--------------------
session_name() 返回当前session的名称

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn