473,795 Members | 3,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exploring the open sessions, manually connecting one

Hello,

I have two questions regarding the Session state.

1) Is there some way on the server to programmaticall y access the other
active sessions? Well, perhaps the question should be formulated not "is
there a way", but "how to do it", because that almost inevitably must be
possible - after all, the ASP.NET enables access for all the session users
to their respective sessions. Perhaps studying the full request lifetime,
and finding out how ASP.NET uses the Session ID cookie to instantiate the
session state, but it could be a teadious task to do. Please, tell me the
best way to access the other active sessions and their data. That would
greatly improve debugging of my online app.

2) How to tell server to connect to another Session state? I have a problem
with online application: the application is opened in a web browser control
of 3rd party desktop application. If I spawn a pop-up window from the aspx
page that is loaded in the IE control, the popup window, unfortunately,
starts up a new session. I am not quite sure, why this happens - the two
pages are on the same domain, the same folder. Maybe making the sessionID
cookie more durable somehow would solve this. However, I am looking for more
general way to connect to my session - that would give me freedom of choice
from possible options. If I would know how to start up a native session,
providing my own SessionID, so that the rest of the application could freely
use standard code to manipulate the session variables (ie, Session["abc"] =
1), there are possible solutions:
a) pass the session Id to the popup in query string
(mypopup.aspx?1 234567890abcdef ). Make the server to use the session Id in
the URL to connect to the correct session
b) pass the session Id in the URL (1234567890abcd ef/mypopup.aspx), then
make http handler that uses the URL string to extract the session Id and
connect the session state object

I will be grateful for any ideas!

Thanks,

Pavils
May 10 '06 #1
0 1221

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
12053
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or Konqueror on Linux) the session variables will mix up and only the latest selection or options will...
9
3061
by: E. Will | last post by:
Hello world, Myself and a few friends have been experiencing the same problem. When using sessions in PHP for ``logins'' we experience the sessions ``mixing.'' To say, one user logs in as ``foo,'' another user logs in as ``bar.'' User ``foo'' refreshes to find himself now logged in as ``bar'' or not logged in at all. This has happened on several different scripts running on several different hosts using several PHP versions (including...
3
2482
by: Maxime Ducharme | last post by:
Hi group We have a problem with sessions in one of our sites. Sessions are used to store login info & some other infos (no objects are stored in sessions). We are using Windows 2000 Server (IIS 5.0) with ASP 3.0 (no .NET on this site). Sometime, data in session is emptied. I say "sometime"
1
2010
by: Maziar Aflatoun | last post by:
Hi, Is it possible using asp.net to see how many people are using a certain web application. For example I have an application where 20+ users can log in and use. Is it possible using C#.net to see how many sessions are open for a particular application? Thank you Maziar Aflatoun
0
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7541
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.