obeygravity Posted January 18, 2013 Share Posted January 18, 2013 Hey, I am trying to make a website with a back-end section for admin to updat the site without having to use html code. I have used this tutorial for the login portion: http://www.phpeasystep.com/phptu/6.html On my localhost everything works perfectly but when I upload this on my webspace there is an issue. Normally (localhost) when you want to go to admin.php (in the tutorial login_succesfull.php) and you have not logged in it will rederict you to the login page, but now it doesn't. If you go directly to the login.php and you enter the username and password it 'logs you in' and directs you to login_succesfull.php. I have updated all the info in checklogin.php to match the info from the webspace. I have no clue why it will work locally but not on a webspace, do you? ps: sorry for the bad english Quote Link to comment https://forums.phpfreaks.com/topic/273313-login-script/ Share on other sites More sharing options...
MDCode Posted January 18, 2013 Share Posted January 18, 2013 I suggest you look at the php.net site. session_register() and session_is_registered() are deprecated as of php version 5.3 and removed as of version 5.4 Not only that, but your site may have php settings configured that you may not be able to use those two functions, even if they have a version lower. For more information check out: session_register() and session_is_registered() Quote Link to comment https://forums.phpfreaks.com/topic/273313-login-script/#findComment-1406693 Share on other sites More sharing options...
Christian F. Posted January 18, 2013 Share Posted January 18, 2013 Scrap that tutorial, it's WAY out of date. Instead I recommend that you read this article about secure login systems, a lot more up-to-date and it contains almost all of the information you need. Might seem a bit heavy and overly complex, but in order to write properly secure login systems you need to know all of that. Quote Link to comment https://forums.phpfreaks.com/topic/273313-login-script/#findComment-1406701 Share on other sites More sharing options...
obeygravity Posted January 20, 2013 Author Share Posted January 20, 2013 On 1/18/2013 at 2:03 PM, Christian F. said: Scrap that tutorial, it's WAY out of date. Instead I recommend that you read this article about secure login systems, a lot more up-to-date and it contains almost all of the information you need. Might seem a bit heavy and overly complex, but in order to write properly secure login systems you need to know all of that. Yeah it looks like a bit of overkill for what I need but i'll give it a go Quote Link to comment https://forums.phpfreaks.com/topic/273313-login-script/#findComment-1407118 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.