|
Posted by Stan McCann on 07/03/06 05:41
"Mike" <mike@mjfcadsolutions.co.uk> wrote in
news:1151865793.895683.40580@j8g2000cwa.googlegroups.com:
> I have a form where a user logs in and after they log in, it stores
> their id from the MySQL database to a session together with a
> "logged in = true" var.
I am writing a similar application and had also though of this method.
Along with a cron job to log users out after x inactivity; of course,
then you also have to save the time/date of each check.
> On every page you have to be logged in, it checks that "logged in =
> true". If then for example it was a page that displays that users
> personal details, it will search the database for the id that is
> stored in the session and pull all the data about that person.
>
> This is one way to do it. Storing all the users details to sessions
> when they log in is another way. What would be best??
I've also looked at sessions but in my testing, using sessions always
wants to store a cookie. I don't want to require cookies.
You can bet I'll be watching this thread!
--
Stan McCann, "Uncle Pirate" http://stanmccann.us/
Implementing negative score for googlegroup postings, see
http://blinkynet.net/comp/uip5.html A zest for living must include a
willingness to die. - R.A. Heinlein
Navigation:
[Reply to this message]
|