d_i_r_t_y has asked for the wisdom of the Perl Monks concerning the following question:
My question relates to the most practical way to keep multiple sessions open at one time, such as when the user may have multiple browser windows open performing simultaneous queries and the like. The nature of the web site is that a user makes an initial query, but then can subquery the results of a previous query to refine their results.
I am using a single session cookie to pass around a session id between scripts, however each invocation of a script with the same session id 'pollutes'/invalidates other currently open sessions. i am hesitant to take the approach of just storing every CGI request parameter in the one session hash, working out what query extends what query, and then artificially constructing the complete query from a 'cgi-parameter history'.
i'm sure this could be done much better -- maybe by using a new session id for every request and keeping a reference to the 'parent' session for each request? how else does one spin off multiple derivative sessions without disturbing other existing/past sessions? wisened monks please advise...
thanks, matt
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: practical aspects of sessions and state
by merlyn (Sage) on Oct 17, 2000 at 06:25 UTC | |
by le (Friar) on Oct 17, 2000 at 12:09 UTC | |
by merlyn (Sage) on Oct 17, 2000 at 15:33 UTC | |
by sutch (Curate) on Oct 17, 2000 at 18:37 UTC | |
by merlyn (Sage) on Oct 17, 2000 at 18:43 UTC | |
by turnstep (Parson) on Oct 17, 2000 at 18:53 UTC | |
Re: practical aspects of sessions and state
by jeorgen (Pilgrim) on Oct 17, 2000 at 16:35 UTC | |
Re: practical aspects of sessions and state
by elwarren (Priest) on Oct 17, 2000 at 18:45 UTC | |
by d_i_r_t_y (Monk) on Oct 19, 2000 at 04:15 UTC |