Session starter : session_start « Cookie Session « PHP






Session starter

 
<?php session_start(); ?>

<html>

 <head>
  <title>Session starter</title>
 <head>

 <body>

 <a href="next.php?<?php echo( SID ); ?>">Next page</a>
 <hr>

 PHPSESSID = 
 <?php 

  echo ( session_id() ); 

 ?>

 </body>
 
</html>
  
  








Related examples in the same category

1.
2.Encode all session data into a single string and return the result
3.Session running
4.Sessions with register_globals on or off in session_test.php
5.session_start() checks to see if a session has started, and if not, it starts one.