Session tracking and multiple form updates

From: Date: Mon, 05 Jul 2004 03:27:12 +0000
Subject: Session tracking and multiple form updates
Groups: php.general 
Request: Send a blank email to php-general+get-189681@lists.php.net to get a copy of this message
Hello, I am working on a web site that is available only over HTTPS and am using session tracking. So far I am only saving the person's display name (different then login), site role and e-mail address in the "$_SESSION" data. The rest of the site is dynamic, now the question is on three particular pages the user fills in a form and hit's submit. Now at the moment on each page is a hidden variable containing a db primary key for which the data is getting updated. I know that hidden values are not a good idea since the user can change them ... so I was going to store the hidden value in a "$_SESSION" variable but then the problem is ... what happens when the user has two - three windows open and they are updating two - three different items. Each having it's own db key ? If I stored the key in a session variable the last one opened would over write any previous one. I hope I explained this correctly ... multiple updates and access to the site is allowed and can not be changed. Thanks. Michael.

« previous php.general (#189681) next »