Forum  Private Forums  Private Forums ...  concurrent users
Previous Previous
 
Next Next
New Post 2/20/2011 6:12 AM
Unresolved
  Visualizer
704 posts
1st Level Poster




concurrent users 

 Hi, we are thinking about implementing a concurrent user model.

The session.abandon is not always triggered wel after the user closes his browser.

How can this be resolved or are there other ways to track the current sessions.

Tom

 
New Post 2/20/2011 9:19 AM
  palli
16586 posts
1st Level Poster




Re: concurrent users 

Hi Tom,

You are correct that the session is only abandoned some time after the user closes his browser, setable in web.config of course as the sessionState timeout.

What comes to mind is adding a timer that would fire on regular intervals and if not heard from in a specific timeframe, the session should be considered dead. You could also do this without a timer by subclassing the controls, somewhat like detecting idle users and discussed in this thread here.

Is this somewhat in the line of what you are thinking ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com

Please include VWG version information with your questions (best: Full name of VWG installation .MSI file)
To send sample code or other files to support, first zip the relevant project or files,
then rename .ZIP file to different extension like .XIP and finally email as attachment to email address above.
Remember to include full Http Url to the forum thread in the message.
 
New Post 2/20/2011 4:43 PM
  dubem1
1105 posts
1st Level Poster




Re: concurrent users 

I have set the VWG timeout to 40 minutes.  Do I have to set the sessionState timeout to the same value?

 
New Post 2/21/2011 1:00 PM
  palli
16586 posts
1st Level Poster




Re: concurrent users 

Hi Martin,

It depends on how you set the Visual WebGui timeout as 40 minutes, and what you want to accomplish.

If you for instance have the default session timeout as 20 minutes, and you set the Visual WebGui's KeepConnectedInterval to any value above 20 minutes, you would get session abaononed before the Visual WebGui application timeouts.

Keeping the 20 minutes sessionState timeout, and setting the Visual WebGui's KeepConnectedInterval to a lower value, would keep the session alive as long as the KeepConnectedRequests keep firing more frequently than once every 20 minutes. After the last KeepConnectedRequest is fired, the session will be abandoned 20 minutes later, again assuming the default of 20 minutes sessionState timeout.

One way of forcing the session to be abandoned at the same time the Visual WebGui application times out, might be to have the Visual WebGui's timeout page redirect to a Visual WebGui "timeout form", which could then make sure the session was abandoned and redirect somewhere else.

Hope this explains,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com

Please include VWG version information with your questions (best: Full name of VWG installation .MSI file)
To send sample code or other files to support, first zip the relevant project or files,
then rename .ZIP file to different extension like .XIP and finally email as attachment to email address above.
Remember to include full Http Url to the forum thread in the message.
 
Previous Previous
 
Next Next
  Forum  Private Forums  Private Forums ...  concurrent users