From: Sam H. <sh...@ma...> - 2006-07-28 23:05:13
|
On Jul 28, 2006, at 4:09 PM, John Jones wrote: > Michael Gage wrote: > >>> think the general gist of it is like this: >>> >>> So you have state objects in the database (or in memory, or >>> whatever). They consist of an ID number and an arbitrary number of >>> key/value pairs. The state IDs should be universally unique and >>> unpredictable. >>> >> >> Is there any reason the key and the stateID need to be different? >> I've always >> rather thought of the key as being a stateID. One difference is that >> the key gets updated from time to time and perhaps you'd like the >> stateID to persist longer. > > My understanding was that Sam was suggesting that each stateID applies > to only one page, whereas the key is typically fixed for a given > session. Basically, every page webwork generates would have its own > stateID which is held until some time period elapses, or maybe killed > earlier if the user logs out. Right. -sam |