#1 2017-03-22 18:02:20

al_bandy
Member
Registered: 2017-03-22
Posts: 1

How to use reOneSessionPerUser

Hello,

I would like that only one session may be created for user.

const
  USER_ACCESS_RIGHTS: TSQLAccessRights =
    (AllowRemoteExecute: [reService, reUrlEncodedSQL, reUrlEncodedDelete,
                          reOneSessionPerUser, reUserCanChangeOwnPassword];
     GET: ALL_ACCESS_RIGHTS; POST: ALL_ACCESS_RIGHTS;
     PUT: ALL_ACCESS_RIGHTS; DELETE: ALL_ACCESS_RIGHTS);

  HTTP_USER_ACCESS_RIGHTS: PSQLAccessRights = @USER_ACCESS_RIGHTS;

.....

  HttpServer := TSQLHttpServer.Create(ServerPort, [RestServerDB], '+', HTTP_DEFAULT_MODE, HTTP_USER_ACCESS_RIGHTS);

Error: There is no overloaded version of 'Create' that can be called with these arguments ???


Has someone one example for me?

Thanks.

Offline

Board footer

Powered by FluxBB