Ok, so I've got an authentication/login form that is "powered by" ajax. The
user logs in, is authenticated, and the last step is to start a session and
save the necessary information in the $_SESSION vars.
For some reason, it appears (and almost of makes sense) that the session
that is started vi
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
Hi,
I'm creating a WEB portal with PHP.
I want to give possibility the users to register on my site and to use some
features on it.
I want to use sessions and to start session only if user login.
How can I understand ot my other pages on site, thath the user has logged in
my site.
i.e. to startse
Hi,
I'm creating a WEB portal with PHP.
I want to give possibility the users to register on my site and to use some
features on it.
I want to use sessions and to start session only if user login.
How can I understand ot my other pages on site, thath the user has logged in
my site.
i.e. to startse
Hi,
I'm creating a WEB portal with PHP.
I want to give possibility the users to register on my site and to use some
features on it.
I want to use sessions and to start session only if user login.
How can I understand ot my other pages on site, thath the user has logged in
my site.
i.e. to startse
7 matches
Mail list logo