PDA

View Full Version : Obtaining identity of a session


umark
Jun 7th, 2006, 06:53 PM
I am implementing a pattern where a web controller would
put a session in one of three states with respect to an
operation:
a) start ("start" the operation)
b) refresh ("refresh data in the operation)
c) end ("end" the operation)

I would like to know how the controller can obtain the
identity of the session or otherwise mark the session
in a state in its tables.

Thanks,

Umark

Mark Fisher
Jun 7th, 2006, 07:03 PM
You might want to have a look at the AbstractWizardFormController which would allow you to work with the data across multiple steps.

umark
Jun 7th, 2006, 11:08 PM
You might want to have a look at the AbstractWizardFormController which would allow you to work with the data across multiple steps.

Thanks for your note. WizardController is (IMO) not applicable
in this situation because I am attempting to build a "tail a log
on the server" function. This delivers to the browser live
additions to a collection on the server as the collection is
updated.

Hence I'd like to have a session go issue the commands "start
tailing", "update tail" and finally "end tailing". Pl let me know
if you still think WizardController can be used.

Since distinct sessions may concurrently start tailing, I need
to mark the state of each session.

Thanks,

Umark