<?php
session_start();
echo "session id:".session_id()."<br/>";
if(isset($_SESSION['test'])){
$_SESSION['test'] = $_SESSION['test'] +1;
}
else{
$_SESSION['test']=1;
}
echo $_SESSION['test'];
?>
session_start();
echo "session id:".session_id()."<br/>";
if(isset($_SESSION['test'])){
$_SESSION['test'] = $_SESSION['test'] +1;
}
else{
$_SESSION['test']=1;
}
echo $_SESSION['test'];
?>
0 件のコメント:
コメントを投稿