Page 1 of 1

User Session

Posted: Wed Jan 14, 2004 3:20 am
by phppick
Hi I am taking username into a session variable after successful login to my project..

How can i check that session variable is valid or not in other pages..

in order to restrict users to key in directly in address bar like

http://localhost/myapplication/project.php

Got Hope?

Posted: Wed Jan 14, 2004 4:28 am
by phpcoder
On the start of every page check wether session is set or not , isset() , if it is set then it means user is valid , if not then user is not valid so u can direct user to loging page .