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

Posted by Mike on 07/02/06 18:43

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.

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??

Thanks

Mike

 

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

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