Hi

I am developing a web application in PHP, I need help in identifiying if a user has login to view a certain page.
For example: If a user just type an address of a page that should ony be accessed by loged in user with out login on, he should be redirected to the login page.

And also can you help me with the php code for login out the loged in user.

Your help will be greatly appreciated,
Thank you in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.