freelancer Posted June 10, 2007 Share Posted June 10, 2007 Hello, I would ask a little favour from you guys. I have a login system here where people can register and login. There is simple code to protect areas that only people who have logged in can see it: if (!is_authed()) I wanted to ask that could somebody please fix me 2 things there:When you are logged in then register.php and login.php are not available for you. Also I would be happy if somebody could add remember and retrive password function there. Here are files: http://www.team-kommando.com/login.rar Thanks! Link to comment https://forums.phpfreaks.com/topic/54952-login-system/ Share on other sites More sharing options...
r-it Posted June 10, 2007 Share Posted June 10, 2007 Dude, we are all here to help each other and learn from each other, so 1, i am going to give you some advice on how you can achieve this and 2, i am not going to code for you. use sessions, if a user is logged in, store his/her username in a session and insert some kind of div, where there is an if statement or something, like this: if(isset($_SESSION['username'])){ //show that the user is logged in}else{ //show login and register link} and do the same for all your pages you do not want visitors to see, just authentica with a session Link to comment https://forums.phpfreaks.com/topic/54952-login-system/#findComment-271758 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.