Check if PHP session is working
To check if PHP session is working, upload following script
1 2 3 4 5 6 7 8 9 10 11 |
<?php session_start(); if (isset($_SESSION["ServerOk"])) { $_SESSION["ServerOk"] += 1; } else { $_SESSION["ServerOk"] = 1; } echo $_SESSION["ServerOk"]; |
Access the file, refresh the page in browser, if you see number increase with every refresh, PHP session is working properly on server.