PHP/Cookie Session/session id
function session_id() returns the user"s SID originally created by session_start().
<source lang="html4strict">
This is its syntax: string session_id([string sid]) <? session_start (); print "Your session identification number is ".session_id(); session_destroy(); ?>
</source>
session_id() function
<source lang="html4strict">
<?php
session_start (); echo "Your session identification number is ".session_id();
?>
</source>
Starting or Resuming a Session
<source lang="html4strict">
<?php session_start(); ?> <html> <head> <title>Starting or Resuming a Session</title> </head> <body> <?php
print "Welcome, your session ID is ".session_id()."
\n\n";?> </body> </html>
</source>