PHP session working on localhost but not on hosting server
I have my website working well on localhost. I have 5 page website. Now On start of each page I write the below code to check if the session exists or not. And if it is I put logout button otherwise login button at one place
Code:
<?php session_start(); $chkvar=0; if(isset($_SESSION['uid'])) { $chkvar=1; } ?> |
So what should I do.? Please let me know if you require more information.
Thanks
Are you using WordPress? Have you tried qSandbox yet?