_SESSION For Log In Refuses To Work On Real Server - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › _SESSION For Log In Refuses To Work On Real Server (1110 Views)
| _SESSION For Log In Refuses To Work On Real Server by Nobody: 10:57pm On Jan 14, 2016 |
I'm kinda new in php I'm building this member reg. logging in system from various codes I've gathered online. I was relatively satisfied with my work and Decided to host. but the login will not work. it works perfect on local host. the script is supposed to log a user in on successful authentication and redirect to indix.php echoing 'welcome, $_session ['username']...' just like Nairaland else echo invalid details but instead it is redirecting to index.php and still showing 'welcome, guest...' It's really annoying becos it was working very fantastic on Local host. pls do you think it has to do with my host (ipage.com) I'm really confused my plans was to announce d forum b4 last weekend any advice? thanks |
| Re: _SESSION For Log In Refuses To Work On Real Server by ChinenyeN(m): 11:07pm On Jan 14, 2016*. Modified: 11:36pm On Jan 14, 2016 |
Write it in caps/uppercase... $_SESSION["username"]. Also, make sure you actually have PHP available wherever you're hosting it. |
| Re: _SESSION For Log In Refuses To Work On Real Server by Nobody: 5:17am On Jan 15, 2016 |
ChinenyeN:Thanks bro but I don't think that's actually the case, this is not my real syntax. like I said everything is perfect on xamp |
| Re: _SESSION For Log In Refuses To Work On Real Server by Nobody: 6:34am On Jan 15, 2016 |
Let's see your code. |
| Re: _SESSION For Log In Refuses To Work On Real Server by maekhel(m): 7:43am On Jan 15, 2016 |
Yungwizzzy:You have to show the codes that handle the logging in so as to know how to help you. |
| Re: _SESSION For Log In Refuses To Work On Real Server by Nobody: 1:52pm On Jan 15, 2016 |
When you guys post programming issues without a code, or screenshot or whatever. |
| Re: _SESSION For Log In Refuses To Work On Real Server by greatMicheal: 10:33pm On Jan 16, 2016 |
@Yungwizzzy, your php code is alright. The problem you are having is from your host iPage. I have the same issue, tried everything humanly possible but to no avail. I have to abandon them for a new host. Google PHP session issue with Ipage and see what I mean. |
I Am Offering To Work On Two Website For Free To Boost My Portfolio • Does AJAX Technology Work On Mobile Phones??? • How Can I Download My Whatsapp Call Log. I Use An Iphone 5s • 2 • 3 • 4
Review A Nairalander's Mobile App - Events Meter • A Frontend/interface Developer Needed For Immediate Employment • Need Help With These: $_SERVER["PHP_AUTH_USER"] And $_SERVER["PHP_AUTH_PW"]