Changeset 36 for trunk/WebServer/UHTTPSessionMySQL.pas
- Timestamp:
- Oct 29, 2010, 10:44:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebServer/UHTTPSessionMySQL.pas
r34 r36 67 67 try 68 68 Lock.Acquire; 69 DbRows := SqlDatabase.Query('DELETE FROM `HTTPSession` WHERE `Time` < DATE_SUB(NOW(), INTERVAL ' + 70 IntToStr(Timeout) +' SECOND)'); 71 DbRows.Free; 69 72 DbRows := SqlDatabase.Query('SELECT * FROM `HTTPSession` WHERE `Identification`="' + 70 73 HandlerData.SessionId + '"'); … … 110 113 Sessions := TStringList.Create; 111 114 SessionIdCookieName := 'SessionId'; 112 Timeout := 3 600;115 Timeout := 3 * 3600; 113 116 end; 114 117
Note:
See TracChangeset
for help on using the changeset viewer.