PageRenderTime 20ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/components/fpweb/demo/fptemplate/sessions/cookiesessions-auto/apache/mod_autosession.lpr

http://github.com/graemeg/lazarus
Unknown | 38 lines | 27 code | 11 blank | 0 comment | 0 complexity | 7bf203105dfefc28e74cc7e0f5e8ae58 MD5 | raw file
 1Library mod_autosession;
 2
 3{$mode objfpc}{$H+}
 4
 5Uses
 6{$ifdef unix}
 7  cthreads,
 8{$endif}
 9  httpd,fpApache, webmodule;
10
11Const
12
13{ The following constant is used to export the module record. It must 
14  always match the name in the LoadModule statement in the apache
15  configuration file(s). It is case sensitive !}
16  ModuleName='mod_autosession';
17
18{ The following constant is used to determine whether the module will
19  handle a request. It should match the name in the SetHandler statement
20  in the apache configuration file(s). It is not case sensitive. }
21
22  HandlerName=ModuleName;
23
24Var
25  DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix}
26
27Exports defaultmodule name ModuleName;
28
29{$IFDEF WINDOWS}{$R mod_autosession.rc}{$ENDIF}
30
31begin
32  Application.Title:='mod_autosession';
33  Application.ModuleName:=ModuleName;
34  Application.HandlerName:=HandlerName;
35  Application.SetModuleRecord(DefaultModule);
36  Application.Initialize;
37end.
38