Changeset 15 for trunk/Packages/CoolWeb/WebServer/UHTTPSessionFile.pas
- Timestamp:
- Mar 22, 2018, 8:31:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/WebServer/UHTTPSessionFile.pas
r12 r15 51 51 begin 52 52 Result := BinToHexString(SHA1(FloatToStr(Now))); 53 while FileExists UTF8(Directory + DirectorySeparator + Result) do53 while FileExists(Directory + DirectorySeparator + Result) do 54 54 Result := BinToHexString(SHA1(FloatToStr(Now))); 55 55 end; … … 75 75 Lock.Acquire; 76 76 SessionFile := Directory + DirectorySeparator + HandlerData.SessionId; 77 if FileExists UTF8(SessionFile) then77 if FileExists(SessionFile) then 78 78 HandlerData.Session.LoadFromFile(SessionFile) 79 79 else HandlerData.SessionId := GetNewSessionId; … … 92 92 SessionFile := Directory + DirectorySeparator + HandlerData.SessionId; 93 93 ForceDirectories(Directory); 94 if DirectoryExists UTF8(Directory) then begin94 if DirectoryExists(Directory) then begin 95 95 DeleteFile(SessionFile); 96 96 HandlerData.Session.SaveToFile(SessionFile)
Note:
See TracChangeset
for help on using the changeset viewer.