Question

On my Global.asax I store all the session ids. If I have the session Id Foo how can I get a speciffic value for that particular session and NOT the current session.

In other words I want to do something like

HttpContext.GetSessionById("Foo").Session["LoggedInUserId"];

instead of

HttpContext.Current.Sesssion["LoggedInUserId"];
Was it helpful?

Solution

If this is your application and you are not just trying to hijack a session, why not store this info in a database? You can then query the session info in the database by the ID and get what you want.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top