#1 2015-01-07 07:50:03

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

[SESSION] how to retrive a link to object

Hello AB,
  how can I do to save an object (eg database) in a session to use it in a REST interface?

My aim is to have a link to a specific external database without having to look at every call of the same authenticated session.

Tnxs

Offline

#2 2015-01-07 08:56:21

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

Re: [SESSION] how to retrive a link to object

Use your own TInterfacedObject class, in sicPerSession mode.
See http://synopse.info/files/html/Synopse% … ml#TITL_92

But consider using sicClientDriven, which is almost the same, but with an explicit per-client instance lifetime.

Offline

#3 2015-01-07 09:41:30

itSDS
Member
From: Germany
Registered: 2014-04-24
Posts: 516

Re: [SESSION] how to retrive a link to object

we actually use Clientdriven to cache some Data needed as long as the client is connected and it works perfect.


Rad Studio 12.1 Santorini

Offline

#4 2015-01-07 14:21:36

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

Re: [SESSION] how to retrive a link to object

Tnxs

Offline

Board footer

Powered by FluxBB