How to check whether a user is logged in

Hi, I am making a simple blog script that asks for a username and password from a page called login.php and if entered correctly transfers the visitor to the main blog console. However, I cannot find a way to check whether an user is logged in at that page. I am a total n00b at PHP so please help.

Thanks in advance,

Abhishek.


Comments

  • : Hi, I am making a simple blog script that asks for a username and
    : password from a page called login.php and if entered correctly
    : transfers the visitor to the main blog console. However, I cannot
    : find a way to check whether an user is logged in at that page. I am
    : a total n00b at PHP so please help.
    :
    : Thanks in advance,
    :
    : Abhishek.
    :

    It's called sessions I think.
    Just search
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion