You are here: Re: cookies and session variables « PHP Programming Language « IT news, forums, messages
Re: cookies and session variables

Posted by Ian on 11/24/05 22:44

Japhy wrote:
> Hello,
> I need to save values typed into forms across several scripts, before
> the user actually 'submits' the form to update the mysql db.
>
> I have been exploring ways to do this, and looking for some guidance as
> to whether to use
> cookies or PHP session variables.
>
I'd use sessions for this, otherwise the user's data is being send back
and forwards in each HTTP request and response. Even with a secure
connection, you may also end up with potentially sensitive data left in
the plain test browser cookie file.

I keep an array of form inputs in my session and import them into each
form as it is generated, so common fields between forms get filled in
when the user moves on to a new form.

Ian

 

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

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