#1 2017-09-06 08:40:19

wac1104
Member
Registered: 2017-08-25
Posts: 17

How do I save the session?

How do I save the session using TSQLRestServerFullMemory

procedure TRestServer.UserLogin(CTXt:TSQLRestServerURIContext);
var
  User:TUserInfo;
  P:PUTF8Char;
  js:string;
  SessionID:integer;
begin
  User :=TUserInfo.Create;
  try
  if UrlDecodeNeedParameters(Ctxt.Parameters,'USERINFO') then
  begin
    UrlDecodeObject(CTXt.Parameters,'USERINFO=',User);
  end;
  finally
    FreeAndNil(User);
  end;


end;

Offline

#2 2017-09-06 10:53:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,656
Website

Re: How do I save the session?

???
I don't understand what you mean.
There is no mORMot session involved in your above code.

Online

Board footer

Powered by FluxBB