site static module

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/10/2009 3:08:44 AM
Gravatar
Total Posts 71

site static module

hi Joe and all,

i installed mojo 2.2.9.2 sqlite, and i have 2 user with administrator role , but when i login with one of them , i can see both of them in Site statics module...

is it normal ??

4/10/2009 5:35:23 AM
Gravatar
Total Posts 18439

Re: site static module

Hi Nasser,

It will show users who  have been online within Session.Timeout of the current time. Default session timeout in is 20 minutes, so it will show all users who have been logged and requested a page in within the last 20 minutes. Even if you log out the first user he will still show in the list until the session timeout interval, so 20 minutes later he should disappear from the list if he make sno more page requests.

If you never logged in as the one of them in the last 20-30 minutes and that user who you never logged in as appears in the list it would be a bug. 

Best,

Joe

4/10/2009 6:37:57 AM
Gravatar
Total Posts 71

Re: site static module

  but you can remove session(of its parts) after logoff (timeout=-1), do you save other data in session?

 

4/10/2009 6:43:23 AM
Gravatar
Total Posts 18439

Re: site static module

We are not actually keeping track of sessions in the stats. We update the user.LastActivityDate on every page request. We show all users whose LastActivityDate > DateTime.UtcNow.AddMinutes(-Session.Timeout);

So it doesn't matter if they actually have a session, its not really based on tracking sessions. We just use the Session.Timeout for convenience as the window of time when a user is considered online.

We don't actually use any session variables in mojoPortal. We do count sessions by incrementing a global variable in Session_Start and decrementing it in Session_End (in global.asax.cs) and this is used for the count of users online.

Hope it makes sense,

Joe

4/10/2009 7:00:58 AM
Gravatar
Total Posts 71

Re: site static module

thanks Joe,

You must sign in to post in the forums. This thread is closed to new posts.