You are here: Re: passing data from page to page « All PHP « IT news, forums, messages
Re: passing data from page to page

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация