garydh Posted October 30, 2009 Share Posted October 30, 2009 Hey all, I have a script where a user logs in.. It uses cookies and works fine on my local machine but once uploaded to the live server, login stops working.. instead of redirecting to the protected page, it redirects back to the login page. Theres nothing in the server error logs to help me and the only significant difference i can find in the 2 servers php.ini files is that on the live server register_globals is off but this shouldnt affect it since I am using superglobals right? Quote Link to comment https://forums.phpfreaks.com/topic/179654-script-working-on-local-test-machine-but-not-on-production-machine/ Share on other sites More sharing options...
MadTechie Posted October 30, 2009 Share Posted October 30, 2009 will affect it if your using superglobals.. you shouldn't be using them, they are deprecated in PHP5 and removed in PHP6 Quote Link to comment https://forums.phpfreaks.com/topic/179654-script-working-on-local-test-machine-but-not-on-production-machine/#findComment-947954 Share on other sites More sharing options...
garydh Posted October 30, 2009 Author Share Posted October 30, 2009 whats my alternative? >_> Quote Link to comment https://forums.phpfreaks.com/topic/179654-script-working-on-local-test-machine-but-not-on-production-machine/#findComment-947955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.