Hello, 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
PHP session working on localhost but not on hosting server
13
Hello,
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:
After this my html tag and code starts. However this working well on my localhost. I am using wamp server. But when I login to server and goto any page and check the value of $chkvar, its always 0.
So what should I do.? Please let me know if you require more information.
Thanks
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:
After this my html tag and code starts. However this working well on my localhost. I am using wamp server. But when I login to server and goto any page and check the value of $chkvar, its always 0.
So what should I do.? Please let me know if you require more information.
Thanks
- Bruce Wayne
- sethczerepak
- [1] reply
- Brandon Tanner
- lordspace
- mesmsgs
- smoothseo
Next Topics on Trending Feed
-
13