C# 클래스 PERMWebSolution.Models.SessionManager

Session management class
파일 보기 프로젝트 열기: VK-EIF/PERM-WEB-SOURCE 1 사용 예제들

공개 메소드들

메소드 설명
SessionManager ( int uID ) : System

Constructor

SessionManager ( string sessionID ) : System

Oveloaded constructor accepts sessionID

checkSession ( ) : bool

checks if user session is active

getUserSession ( ) : string

Returns session if user is regitered

비공개 메소드들

메소드 설명
createSession ( ) : bool

Saves session to the session table

deleteOldSessions ( ) : void

Deletes old sessions

deleteOldUserSession ( ) : void

Deletes old sessions

메소드 상세

SessionManager() 공개 메소드

Constructor
public SessionManager ( int uID ) : System
uID int User ID
리턴 System

SessionManager() 공개 메소드

Oveloaded constructor accepts sessionID
public SessionManager ( string sessionID ) : System
sessionID string String sessionID
리턴 System

checkSession() 공개 메소드

checks if user session is active
public checkSession ( ) : bool
리턴 bool

getUserSession() 공개 메소드

Returns session if user is regitered
public getUserSession ( ) : string
리턴 string