Just make it so that a successful login process involves setting a session
variable.
In all pages that require a login, check that the session variable exists.
In any other pages, just ignore it.
Simple as that! Now just read the php documentation on how to do it ... (ie
using the session_* comma
why do you want todo it this way ? to tell if a user is logged in I assign a
valid people_id (session_var) if the var has a valid id, then they are
logged in, else they are not.
--
Chris Lee
[EMAIL PROTECTED]
""Rosen"" <[EMAIL PROTECTED]> wrote in message
9gnhvd$8qh$[EMAIL PROTECTED]">new
Hi Rosen,
Put your
session_start();
session_unregister("var1", "var2");
functions at the beginning of your login page, but then destroy the session if login
is false and on logout.
session_unregister($var1);
session_unregister($var2);
session_destroy();
Finally, on subsequent pages that the
3 matches
Mail list logo