Re: requests from 2nd window breaks my program

From: Date: Mon, 14 Aug 2006 16:32:42 +0000
Subject: Re: requests from 2nd window breaks my program
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-240641@lists.php.net to get a copy of this message
> > on rereading your post - your storing session data in a db, why bother; > secondly > it sounds like you just overwriting the session record with a new > transaction > id rather than adding a new transaction id [record] and leaving any > already existing > transactions available. > > basically pass the transaction id around when you need to keep referring > to > an existing transactions and maintain a 'stack' of active transactions. > Reason I store session info in 'sessions' table CREATE TABLE sessions ( sessID varchar(45) NOT NULL default '', last_update timestamp(14) NOT NULL, session_values text NOT NULL, PRIMARY KEY (sessID) ) TYPE=MyISAM; instead in $_SESSIONS (something like $_SESSION['session_info']['User'], $_SESSION['session_info']['UserNo'], $_SESSION['session_info']['OrderID, '], $_SESSION['session_info']['PageID'], etc.) is to be able to see who is "online", eventually by redoing sessions table, when they started session, how much time they spend on application, what they mostly use from application, etc. (requests from "the office"). -afan

« previous php.general (#240641) next »