PHP modify session_id sample code_PHP tutorial

WBOY
Release: 2016-07-13 10:41:39
Original
661 people have browsed it

Copy code The code is as follows:

if(isset($_GET["se"])){
$se = $ _GET["se"];
}else{
return;
}

if(!empty($se)){

echo("receive se: ".$se."

"); //The accepted session is $se
session_id($se); //Set the $se bit session_id
session_start() ; //Open session, be careful not to swap it with the previous step, the job is successful
echo("new session id: ".session_id()."

");
echo $ _SESSION['h'];
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/676880.htmlTechArticleCopy the code The code is as follows: if(isset($_GET["se"])){ $se = $_GET ["se"]; }else{ return; } if(!empty($se)){ echo("receive se: ".$se."/br/br"); //The accepted session is $se session_id($s...
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