List WebSession ID's
Posted: Wed Jul 07, 2010 11:38 pm
Hi,
As part of our ongoing advancements to our web applications, i am looking at using the websession ID to determine which users are using which parts of the system. We are having a few issues where two users are accessing the same data simultaneously and data is being lost. A 'soft-lock' procedure is needed but it isn't simple to do at this particular part of the system (and to hard to describe on here). My thought, was if i could get each users sessionID and use that to 'soft-lock' the data on the screen, then do periodic checks on the currently active sessionID's to see if that user is still there (We can't use the username as if somebody just closes the browser, we don't know!). This will ensure that no data is locked with the user who locked it disconnected.
What is the best way of getting a list of the currently active sessionID's on a web application? Is there also, an easy way to get the currentSessions' sessionID?
If anybody has any suggestions on a better way of soft locking data on a web application then that would be useful too - i'm very open to better suggestions!
Cheers,
Rich
As part of our ongoing advancements to our web applications, i am looking at using the websession ID to determine which users are using which parts of the system. We are having a few issues where two users are accessing the same data simultaneously and data is being lost. A 'soft-lock' procedure is needed but it isn't simple to do at this particular part of the system (and to hard to describe on here). My thought, was if i could get each users sessionID and use that to 'soft-lock' the data on the screen, then do periodic checks on the currently active sessionID's to see if that user is still there (We can't use the username as if somebody just closes the browser, we don't know!). This will ensure that no data is locked with the user who locked it disconnected.
What is the best way of getting a list of the currently active sessionID's on a web application? Is there also, an easy way to get the currentSessions' sessionID?
If anybody has any suggestions on a better way of soft locking data on a web application then that would be useful too - i'm very open to better suggestions!
Cheers,
Rich