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

php如何通过sessionid获取session

WBOY
Release: 2016-06-13 13:21:30
Original
1478 people have browsed it

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

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template