Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get Session object by SessionId? [duplicate]

Tags:

c#

asp.net-mvc

Possible Duplicate:
Get session object from sessionID in ASP.Net C#

How to get Session object by SessionId?

like image 917
Andrei Andrushkevich Avatar asked Mar 23 '11 14:03

Andrei Andrushkevich


People also ask

Can session ID be duplicated?

Yes, Session. SessionId can be duplicate.

Is session ID always same?

Closing a browser and then reopening and visiting the site again generates a new session ID. However, the same session ID is sometimes maintained as long as the browser is open, even if the user leaves the site in question and returns.

Are session IDs unique?

A session ID is a unique identification number that is generated by a website's server. Session IDs are assigned to site users when they visit a site for the first time.


1 Answers

My solution is direct access to storage of Session State.

example:

(for SQL) direct select query to ASPState database with tables(ASPStateTempApplications, ASPStateTempSessions)

like image 86
Andrei Andrushkevich Avatar answered Oct 26 '22 16:10

Andrei Andrushkevich