Starting or Resuming a Session : session_id « Cookie Session « PHP






Starting or Resuming a Session

 
<?php
session_start();
?>
<html>
<head>
<title>Starting or Resuming a Session</title>
</head>
<body>
<?php
print "<p>Welcome, your session ID is ".session_id()."</p>\n\n";
?>
</body>
</html>
  
  








Related examples in the same category

1.function session_id() returns the user's SID originally created by session_start().
2.session_id() function