Changeset 237 for Network/CoolWeb/WebServer/UHTTPSessionFile.pas
- Timestamp:
- Apr 30, 2011, 10:54:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/CoolWeb/WebServer/UHTTPSessionFile.pas
r94 r237 14 14 THTTPSessionStorageFile = class(THTTPSessionStorage) 15 15 private 16 FDirectory: string; 17 FSessionIdCookieName: string; 18 FTimeout: Integer; 16 19 Lock: TCriticalSection; 17 20 function GetNewSessionId: string; 18 21 procedure GetSessionId(HandlerData: THTTPHandlerData); 19 22 public 20 Timeout: Integer; // in seconds21 Directory: string;22 SessionIdCookieName: string;23 23 Sessions: TStringList; 24 24 procedure Load(HandlerData: THTTPHandlerData); override; 25 25 procedure Save(HandlerData: THTTPHandlerData); override; 26 constructor Create ; override;26 constructor Create(AOwner: TComponent); override; 27 27 destructor Destroy; override; 28 published 29 property Timeout: Integer read FTimeout write FTimeout; // in seconds 30 property Directory: string read FDirectory write FDirectory; 31 property SessionIdCookieName: string read FSessionIdCookieName 32 write FSessionIdCookieName; 28 33 end; 29 34 35 procedure Register; 36 30 37 implementation 38 39 procedure Register; 40 begin 41 RegisterComponents('CoolWeb', [THTTPSessionStorageFile]); 42 end; 43 31 44 32 45 { THTTPSession } … … 88 101 end; 89 102 90 constructor THTTPSessionStorageFile.Create ;103 constructor THTTPSessionStorageFile.Create(AOwner: TComponent); 91 104 begin 92 inherited Create;105 inherited; 93 106 Lock := TCriticalSection.Create; 94 107 Sessions := TStringList.Create;
Note:
See TracChangeset
for help on using the changeset viewer.