Hello All and thanks for the great PHP board.

I have installed the "A Complete, Secure User Login System" created by Tim Perdue and suggested in an article on this site Article Here . I know it's not super secure but I'm not in need of a super secure system. I just want to be able to recognize a user that is logged in.

I have installed the script, created the table in mysql and I can login and out just fine.

QUESTION: What code do I add to a regular .php page to see if a user is logged in or not? I know this is a rookie question but I am stumped.

Thanks

    Firstly welcome to the board. Secondly i only had a quick look at the article but there is a function user_isloggedin() that entire file will be required. I didnt see any sessions used but again i only quickly looked over it.

    Also it seems that entire article is writen for register_globals = On which is not good practice. Take a look at the newbies stickied thread about register_globals.

      Write a Reply...