gudfry Posted July 15, 2008 Share Posted July 15, 2008 hi to all I' am new in PHP thats why im having problem of some php stuff function, I want to create a function for login and logout with no database related, i want only a plain PHP script, if the user input correct password and username it will direct to the index location. hope you guys have idea ??? ???, thanks for the advance, Quote Link to comment https://forums.phpfreaks.com/topic/114797-solved-session-login-and-logout/ Share on other sites More sharing options...
DeanWhitehouse Posted July 15, 2008 Share Posted July 15, 2008 so , what have u got so far? Quote Link to comment https://forums.phpfreaks.com/topic/114797-solved-session-login-and-logout/#findComment-590255 Share on other sites More sharing options...
Wolphie Posted July 15, 2008 Share Posted July 15, 2008 How exactly are you going to store user information? Sessions and cookies only last so long. Quote Link to comment https://forums.phpfreaks.com/topic/114797-solved-session-login-and-logout/#findComment-590257 Share on other sites More sharing options...
j007ha Posted July 15, 2008 Share Posted July 15, 2008 <?php if($username=="abc" && $password=="123"){ header("Location:index.php"); } else{ header("Location:login.php"); } ?> this is wat u want? Quote Link to comment https://forums.phpfreaks.com/topic/114797-solved-session-login-and-logout/#findComment-590258 Share on other sites More sharing options...
gudfry Posted July 15, 2008 Author Share Posted July 15, 2008 <?php if($username=="abc" && $password=="123"){ header("Location:index.php"); } else{ header("Location:login.php"); } ?> this is wat u want? hi j007ha; ;) well thank you for yur replied it help me alot, Quote Link to comment https://forums.phpfreaks.com/topic/114797-solved-session-login-and-logout/#findComment-590264 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.