C# Class TcpServer.SessionManager

Exibir arquivo Open project: ProfessionalCSharp/ProfessionalCSharp6

Public Methods

Method Description
CleanupAllSessions ( ) : void
CleanupSession ( string sessionId ) : void
CreateSession ( ) : string
GetSessionData ( string sessionId, string key ) : string
ParseSessionData ( string sessionId, string requestAction ) : string
SetSessionData ( string sessionId, string key, string value ) : void
TouchSession ( string sessionId ) : bool

Method Details

CleanupAllSessions() public method

public CleanupAllSessions ( ) : void
return void

CleanupSession() public method

public CleanupSession ( string sessionId ) : void
sessionId string
return void

CreateSession() public method

public CreateSession ( ) : string
return string

GetSessionData() public method

public GetSessionData ( string sessionId, string key ) : string
sessionId string
key string
return string

ParseSessionData() public method

public ParseSessionData ( string sessionId, string requestAction ) : string
sessionId string
requestAction string
return string

SetSessionData() public method

public SetSessionData ( string sessionId, string key, string value ) : void
sessionId string
key string
value string
return void

TouchSession() public method

public TouchSession ( string sessionId ) : bool
sessionId string
return bool