I have a website with a global.asax showing me current users online on the actual website.
Is it possible to get this session information in another application that resides on the same server?
What I'm trying to accomplish really is the following:
I do not want to reveal session info to the public so I do not want to display it on the site.
We have a separate web application which is the admin panel for this website.
I would like to show in our admin panel the total number of sessions on the website and the total number if signed in users.
So basically grab global.asax info outside of current application.
Is this even possible?
Thank you in advance,
Eleonora
DotNetSlave,
Still slaving, and learning, and . . .
napstulik7
Member
93 Points
91 Posts
SESSION INFO
Mar 27, 2008 04:15 PM|LINK
I have a website with a global.asax showing me current users online on the actual website.
Is it possible to get this session information in another application that resides on the same server?
What I'm trying to accomplish really is the following:
I do not want to reveal session info to the public so I do not want to display it on the site.
We have a separate web application which is the admin panel for this website.
I would like to show in our admin panel the total number of sessions on the website and the total number if signed in users.
So basically grab global.asax info outside of current application.
Is this even possible?
Thank you in advance,
Eleonora
Still slaving, and learning, and . . .
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: SESSION INFO
Mar 27, 2008 04:28 PM|LINK
Hi
if there are a separate virtual directories ( separate app) , you can't share the application data ,
and so you need to store the users stats in a database table so that you can access it in the admin Panel website ....
napstulik7
Member
93 Points
91 Posts
Re: SESSION INFO
Mar 27, 2008 04:33 PM|LINK
Thanks for the quick response.
How do i go about storing sessions in a database?
Something I have never done before, so I just need to understand the concept.
Thank you,
Eleonora
Still slaving, and learning, and . . .
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: SESSION INFO
Mar 27, 2008 04:39 PM|LINK
I mean you can store the number of users , userNames , and not the whole user sessions ,
so just store what you need ....
On sessionStart in Global.asax, you can increment(update) the number of users online in your database table ,
and on sessionEnd , you can decrement it ...