PageRenderTime 8ms CodeModel.GetById 7ms app.highlight 0ms RepoModel.GetById 0ms app.codeStats 0ms

/packages/fcl-web/examples/fptemplate/sessions/cookiesessions-login/apache/cookiesession.lpr

https://github.com/slibre/freepascal
Unknown | 37 lines | 26 code | 11 blank | 0 comment | 0 complexity | bd493db97defbe93e78a6384d6fa8cd8 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1Library cookiesession;
 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_cookiesession';
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{$R *.res}
30
31begin
32  Application.ModuleName:=ModuleName;
33  Application.HandlerName:=HandlerName;
34  Application.SetModuleRecord(DefaultModule);
35  Application.Initialize;
36end.
37