Forum  Commercial Foru...  Commercial Foru...  !!! huge problem, users get sessions of other users !!! (IIS7 bug?)
Previous Previous
 
Next Next
New Post 9/24/2009 8:59 AM
  rdhatch
635 posts
1st Level Poster




Re: !!! huge problem, users get sessions of other users !!! 
Modified By rdhatch  on 9/24/2009 11:12:45 AM)

Hi Tom -

That Timeout you're experiencing is expected behavior - because the VWG Client is automatically calling the server every 2 minutes.  More details on Wiki under Automatic Logout.

I believe Session.Timeout is likely unrelated to your problem.  Best of luck narrowing down the problem!

Ryan


Ryan D. Hatch, VWG MVP
GeniusCode.net | VWG Community Frameworks | VWG Wiki
 
New Post 9/24/2009 9:27 AM
  ori.cohen
4383 posts
1st Level Poster




Re: !!! huge problem, users get sessions of other users !!! 
Modified By ori.cohen  on 9/24/2009 11:28:48 AM)

Hello Tom,

As I think Ryan suggests, you may have made changes to the VWG KeepConnected settings.
I provide some important information about these settings in these two threads here and here.

You may have based your automatic logout module on the ASP.NET timeout, without taking into account the VWG KeepConnected mechanism or without fully understanding how it works and what it is meant for.

Regards,

Ori Cohen
Support Manager, the Visual WebGui team

 
New Post 9/24/2009 9:41 AM
  Visualizer
665 posts
1st Level Poster




Re: !!! huge problem, users get sessions of other users !!! 
Modified By Visualizer  on 9/24/2009 1:07:52 PM)

Yes you are right i overlooked that the default is 2 minutes so this cannot work. I will implement this evening and retest this auto logout after an idle time of 8 minutes.

But i guess my original problem isnt solved, but i hope with setting the correct timeout values i can avoid it.

We took all your sugestions in considiration and checked them one by one but cannot find anything in the code what can cause these switching sessions.

 

So if i understand well i should put the sessionstate timeout to 2 (minutes) and KeepConnectedLimitation to 3 there should be a timeout after 8 minutes and the session is killed?

 

 
New Post 9/24/2009 10:37 AM
  jharmon@blinfo.com
837 posts
1st Level Poster




Re: !!! huge problem, users get sessions of other users !!! 

Not sure if this will help but I'll put it out there anyway ;>)

I had similar problems with users getting other users settings, etc.  What helped me the most was when exiting the applicaiton I added a ThreadSuspend event with the following code in the procedure:

Session.IsLoggedOn = false;
VWGContext.Current.HttpContext.Session.Abandon();

Once I did this and changed my timeout settings so that the user would never time out the session seems to stay intact.  At least I haven't had issues so far.  Hope this helps...


Thanks, Joe
 
New Post 9/24/2009 11:14 AM
  Visualizer
665 posts
1st Level Poster




Re: !!! huge problem, users get sessions of other users !!! 

Hi Joe, great you solved the problem.

We also have this code on the logout click of the application. So the user is disconnected and the session is killed, this works because the user return to the login screen again.

Can you explain a bit more about the ThreadSuspend, what is it how to implement it.

Thanks in advance!

 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  !!! huge problem, users get sessions of other users !!! (IIS7 bug?)
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS