mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Session ID added to output
This commit is contained in:
2
test.php
2
test.php
@@ -28,7 +28,7 @@ echo "<br><br><hr><br>";
|
||||
|
||||
|
||||
if(!isset($_SESSION)) {@session_start();}
|
||||
echo '<b>TEST 2 of 3: Sessions:</b></b><br>These values should all be the same:<br><br>';
|
||||
echo '<b>TEST 2 of 3: Sessions:</b></b><br>Session ID: '.session_id().'. These values should all be the same:<br><br>';
|
||||
echo '<div style="display: inline-block; width: 200px">SESSION, BEFORE SET:</div>'.$_SESSION["string"]."<br>";
|
||||
if (!isset($_GET["string"])) {
|
||||
$_SESSION["string"] = md5(uniqid(mt_rand(), true));
|
||||
|
||||
Reference in New Issue
Block a user