Changeset 51 for trunk/Modules
- Timestamp:
- Apr 30, 2011, 11:44:14 PM (14 years ago)
- Location:
- trunk/Modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/UMainModule.lfm
r50 r51 14 14 end 15 15 object HTTPSessionStorageMySQL1: THTTPSessionStorageMySQL 16 Database = Database 16 17 Timeout = 10800 17 18 SessionIdCookieName = 'SessionId' … … 19 20 top = 31 20 21 end 22 object Database: TSqlDatabase 23 Connected = False 24 Encoding = 'utf8' 25 left = 81 26 top = 86 27 end 21 28 end -
trunk/Modules/UMainModule.lrs
r50 r51 7 7 +'./'#14'SessionStorage'#7#24'HTTPSessionStorageMySQL1'#9'OnRequest'#7#17'HTT' 8 8 +'PServerRequest'#4'left'#2'Q'#3'top'#2' '#0#0#24'THTTPSessionStorageMySQL'#24 9 +'HTTPSessionStorageMySQL1'#7'Timeout'#3'0*'#19'SessionIdCookieName'#6#9'Sess' 10 +'ionId'#4'left'#3'8'#1#3'top'#2#31#0#0#0 9 +'HTTPSessionStorageMySQL1'#8'Database'#7#8'Database'#7'Timeout'#3'0*'#19'Ses' 10 +'sionIdCookieName'#6#9'SessionId'#4'left'#3'8'#1#3'top'#2#31#0#0#12'TSqlData' 11 +'base'#8'Database'#9'Connected'#8#8'Encoding'#6#4'utf8'#4'left'#2'Q'#3'top'#2 12 +'V'#0#0#0 11 13 ]); -
trunk/Modules/UMainModule.pas
r50 r51 32 32 HTTPServer: THTTPServerCGI; 33 33 HTTPSessionStorageMySQL1: THTTPSessionStorageMySQL; 34 Database: TSqlDatabase; 34 35 procedure HTTPServerRequest(HandlerData: THTTPHandlerData); 35 36 private … … 51 52 HtmlDocument: THtmlDocument; 52 53 Pages: TRegistredPageList; 53 Database: TSqlDatabase;54 54 PageName: string; 55 55 ModuleName: string; … … 164 164 begin 165 165 inherited; 166 Database := TSqlDatabase.Create;167 166 Pages := TRegistredPageList.Create; 168 167 HtmlDocument := THtmlDocument.Create; … … 176 175 begin 177 176 HtmlDocument.Free; 178 Database.Free;179 177 Pages.Free; 180 178 User.Free; … … 291 289 MainModule.HTTPServer.ShowExceptions := Config.ShowException; 292 290 //Database.Query('SELECT * FROM ssss'); 293 THTTPSessionStorageMySQL(MainModule.HTTPServer.SessionStorage).SqlDatabase := Database;294 291 MainModule.HTTPServer.Run; 295 292 end;
Note:
See TracChangeset
for help on using the changeset viewer.