PHP Terms Session SID Retreive

 

- Info:

- session_id() is used to retreive current SSID.

 

- Example:

- Create PHP Console Application Test.php.

 

Test.html

<?php

//ENABLE SESSION.

session_start();

//GET SID.

echo "SID = " . session_id() . "\n";

?>

 

output

SID = 1dbdfrepigdkb6bhc4020prsr0