function session_id() returns the user's SID originally created by session_start(). : session_id « Cookie Session « PHP






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

 
This is its syntax: string session_id([string sid])

<?
session_start ();
print "Your session identification number is ".session_id();
session_destroy();
?>
  
  








Related examples in the same category

1.Starting or Resuming a Session
2.session_id() function