Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread Michael Gale
Hello, Thanks for the replies ... I valid all the data and input from the user. So if the user changes the value nothing bad will happen: I have in the code: if ($var != $hiddenvar) { e-mail blank saying "Blank has been updated" } That is it ... I made a mistake in my last e-mail ..

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread John W. Holmes
Tom Rogers wrote: store it in the session like: $_SESSION[session_id()]['dbkey'] = $dbkey; then get it back with $dbkey = (isset($_SESSION[session_id()]['dbkey']))? $_SESSION[session_id()]['dbkey'] : 0; That doesn't negate the problem of people having more than one window open and editing records

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread John W. Holmes
Michael Gale wrote: 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

Re: [PHP] Session tracking and multiple form updates

2004-07-04 Thread Tom Rogers
Hi, Monday, July 5, 2004, 1:27:12 PM, you wrote: MG> Hello, MG> I am working on a web site that is available only over HTTPS and am MG> using session tracking. MG> So far I am only saving the person's display name (different then MG> login), site role and e-mail address in the "$_SESSION" da

RE: [PHP] Session Tracking

2002-07-22 Thread John Holmes
> Do we have to use the key word > session_register("variablename"); > in every single page, in which we plan to use the "variablename"?. Or is > it > possible that we register the variablename once, and in the subsequent > pages > continue to access it using $variablename ? You just have to cal

Re: [PHP] Session Tracking Problem

2001-07-28 Thread Richard Baskett
You need to make sure you do a session_start at the beginning of each page example: First Page: Other Pages: > Hi All, > I have a problem in session tracking, > > After checking User name and password from database, I register a > session as > > session_register("User_name"); > > For nex

Re: [PHP] Session tracking question

2001-01-23 Thread Todd Cary
Wade - I am very new with using PHP so I cannot submit my answer as "what most use". However, here is what I use: I do not like to be dependent on Cookies. For me, Cookies are a convenience. That is, I may store a UserID and if it is in a Cookie, use the ID to put up a greeting or whatever.

Re: [PHP] Session tracking question

2001-01-23 Thread Alexander Wagner
Wade D wrote: > what do most use, combination of cookies and GET? IMHO the optimal solution are cookies with a fallback to GET. In some situations, though, it may be better to drop cookies completely. Wagner -- One maniac alone can do what 20 together cannot -- PHP General Mailing List (htt