Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Raise an event from application level into a session?

Status
Not open for further replies.

jlbsloan

Programmer
Mar 1, 2001
45
US
Does anyone know how to raise or pass an event to a specific session. I have a tcpip control that receives network messages and i need to diplay a certain aspx page when a message comes in. Any ideas?????
 
jib: good question - seems there may only be 2 events associated with Session event, q.v.,

Session_Start
Session_End

Perhaps you could trigger the event using Session cookies; or otherwise identify the SessionID in code behind and respond accordingly.

Not much experience in this area - good luck, just a thought.

 
I can use a winsock control at the application level and receive the event, but when I try to put a Winsock in the session code ( class, module, form, etc.) the event does not fire. How would you refer to the sessionID in the code behind? Is there any way to create a collection of session objects or refer to a specific session from the application level?
 
jib: if you caputre the Sessions as they came in, which you could do fairly easy, you might store them in an array or other object.

I think too that the trick would be of course to caputre the SessionID within an event in code behind. Perhaps jfrost or link9(Paul) will show up shortly; they have quiet a bit of experience and sure they will find this problem interesting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top