Click here to Skip to main content
13,256,841 members (50,427 online)
Rate this:
Please Sign up or sign in to vote.
See more:
i want to know that it is possible to check multiple session on one page. if yes, how ?

because i am using some task same for Admin as well as special user at user side. so i do not want repetation to do in user side. if this problem solved, same things be not happend two times.

e.g in admin panel create two reports and in both page load event check only one admin session. so that both report shown to the some special user at user side.

Please Help Me..
Posted 7-Jun-12 22:31pm
Updated 7-Jun-12 22:32pm
Sandeep Mewara 8-Jun-12 3:55am
Not clear. Please rephrase.
Mits Machhi 8-Jun-12 4:08am
possible to check two diffrent session on one page load.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The answer is no for session. These are user based and it is not possible to share data using this mechanism.

However, there are a few other options you should consider.

1) If you are using the roles provider with ASP.NET (I take it that you are referring to ASP.NET) you should have a role assigned to each user. Using the roles provider you could easily distinguish between who is admin and who is a normal user.[^]

2) Consider using application state. This is the same as session but is globally available to all users. There could be some token or information in the state that could be used to distinguish who is online etc. This is used in the same way as session state.

A Walkthrough to Application State[^]

3) use the caching to store data or information:

Caching in ASP.NET[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171114.1 | Last Updated 8 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100