#1 Re: mORMot 1 » sample 10 - background http service » 2012-04-11 15:40:54

TFileServer is defined in the unit fileserver.pas

#2 Re: mORMot 1 » sample 10 - background http service » 2012-04-11 15:18:54

Hi,
i have a service running using the jedi library svcmgr

interface
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, SvcMgr, Dialogs,
  SynCommons, SQLite3Commons, StrUtils, FileServer;
  
  type
  TMyService = class(TService)
    procedure ServiceStart(Sender: TService; var Started: Boolean);
    procedure ServiceStop(Sender: TService; var Stopped: Boolean);
  public
    function GetServiceController: TServiceController; override;
  end;

var
  MyService: TMyService;
implementation

procedure ServiceController(CtrlCode: DWord); stdcall;
begin
  MyService.Controller(CtrlCode);
end;

function TMyService.GetServiceController: TServiceController;
begin
  Result := ServiceController;
end;

procedure TMyService.ServiceStart(Sender: TService; var Started: Boolean);
begin
  Server := TFileServer.Create('localhost','8080','c:\mydb.db');
end;

do you think it's a correct implementation of the service or something can go wrong?

tanx

#3 Re: mORMot 1 » Session Timeout » 2012-04-11 14:46:11

I return after a long time to this question...

i changed the value AUser.AuthUser.GroupRights.SessionTimeout to 1,2,3 but the sessions never expire.

Does the timeout works?

thanx

#4 Re: Source Code repository » Introducing enhanced logging mechanism » 2012-04-06 14:15:14

Thanks ab,
i try the patch and it works.

But i log the sessions deleted after closing the client, but i can't log those deleted by timeout.
How can i do this?

Thanks

#5 mORMot 1 » TSynLog: getting last log entries » 2012-04-06 10:20:56

lestat
Replies: 1

I'm building an administration interface for the http service and i want to show the log. But i don't want to read the log file, I would get the server send to the client the last n log rows. Is there a function to do this?

Thanks

#8 Re: mORMot 1 » last access of users » 2012-03-07 13:39:47

Thanks ab.

it works with iso8601now but with last access it returns an error.
for example  lastaccess is 19775435, and iso86now is 135032268700

#9 Re: mORMot 1 » last access of users » 2012-03-05 10:28:17

How can i convert the last access property in date and time?

Tanks

#10 Re: mORMot 1 » How can I convert my server console application in a service? » 2012-02-29 11:21:36

How is possible to patch the code to run the example?

#11 mORMot 1 » Session Timeout » 2012-02-20 11:57:04

lestat
Replies: 3

How can i change the default value for the session's timeout?

Board footer

Powered by FluxBB