How to get session value from where out of asp.net process domain?(session ID is known)

O

ocean

The scenario:
I have a web application(asp.net);
This web application need an ACTIVEX control to perform some advanced
communication work;
The activex control run at out of web application process.(customer's
computer).
Now the question is,how the control login to the
server?The web application check the user login status through session
state. My
idead as follow:
1.The control gets sessionID through IHTMLDocument2 interface(a COM
interface) on the client side;
2.Send this value to server;(i plan to run a process on the server
side to receive this value);
3.the process read the session associated with this sessionID and check
if this session logined.then reply the control.

Now i can get the sessionID.but don't know how to get the session by
sessionID on server side.

thanks advance.
 
D

Dirc Khan-Evans

ocean said:
The scenario:
I have a web application(asp.net);
This web application need an ACTIVEX control to perform some
advanced communication work;
The activex control run at out of web application
process.(customer's computer). Now the question is,how the control
login to the server?The web application check the user login status
through session state. My idead as follow:
1.The control gets sessionID through IHTMLDocument2 interface(a COM
interface) on the client side;
2.Send this value to server;(i plan to run a process on the server
side to receive this value);
3.the process read the session associated with this sessionID and
check if this session logined.then reply the control.

Now i can get the sessionID.but don't know how to get the session by
sessionID on server side.

thanks advance.

Session.SessionID is the simple answer.

(The HttpContext holds all this information for each page)

Now the real question is why on earth do you want to go through
such a convoluted process?

If you use ASP.NET authentication(forms or windows) you will not
need to do this.. the fact that someone has been authenticatied
will be available on the server and you can store anything
you want in the Session.

--
 
O

ocean

I know clearly how to do it in asp.net process.But I means useing session
from out of asp.net process.Because the activex control run on customers
computer.I want to check the user login by a same way ---- asp.net
session.Other wise I must require the user retype the login name and
password when the activex control start though the user already logined to
the web.This is not expected to the customer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top