An open API service indexing awesome lists of open source software.

https://github.com/orellabac/onlinesessionmodule

Online Users Module Version 2.0 To easily track the current session list and its contents. Very handy for ASP.NET MVC or WebMap projects
https://github.com/orellabac/onlinesessionmodule

asp-net module mvc nuget-package session session-management tracking webmap

Last synced: 5 months ago
JSON representation

Online Users Module Version 2.0 To easily track the current session list and its contents. Very handy for ASP.NET MVC or WebMap projects

Awesome Lists containing this project

README

          

Online Users Module Version 2.0
================================

[![Build status](https://ci.appveyor.com/api/projects/status/foi3wv36o8gx8hq7?svg=true)](https://ci.appveyor.com/project/orellabac/onlinesessionmodule)

This is a simple module that you can add to your website to monitor current users and session sizes

I created this module mostly to deal with ASP.NET MVC Applications specially applications migrated with Mobilize.NET WebMap.

Recently I realized that the Github code was not compiling, so I decided to update it a little and provide some more features.

Features in this release
------------------------

My focus in this release was mostly on make it simple to use.
On previous versions there were some manual steps to use it (don't you hate that!!)
So in this new version, I hope it is super simple.

```
Install-Package OnlineUsersModule
```

And that's all ( Well in most cases).

NOTE: I assume that you have an ignore route like: `routes.IgnoreRoute("sessioninfo.axd/{*pathInfo}");`
inside your `RouteConfig.cs`.

But what does this nuget do?
---------------------------

Well it add an easy way to see the current list of sessions.
So for example if you application is running at `http:\\localhost:54485` then
just navigate to `http://localhost:54485/sessioninfo.axd/sessions` it would show a list like:

![SessionsScreen](SessionsScreen.PNG)

From the session screen you can query the current session size, list the session contents or open the
session terminal.

What is the session terminal?
---------------------------

Well in this version I added a session console. I just wanted to create a terminal-like interface
and terminal interfaces are cool.

![Sessions Terminal](SesssionTerminal.PNG)

This terminal only implements some simple commands:

```
>> dump session
```

This command will create an Excel file with the session contents. Very handy to perform analysis and comparisons.

```
>> dump item ITEMID
```

This command shows the content of a the item with a particular id in the session

```
>> dump pattern REGULAREXPRESSION
```

This command shows the contents of all elements that match the given regular expression

```
>> dump bim ITEMID
```

Shows a hex dump of the item with a particular id in the session

Installation Issues
-------------------

Some uses have had some issues when installing the Nuget.
It might report an error with Newtonsoft.json I really do not know why because there are no direct dependencies but
anyway if you see something like that change setting as in the picture below:

![NugetIssues](SessionsScreen.PNG)