You are not logged in.
Pages: 1
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
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
we actually use Clientdriven to cache some Data needed as long as the client is connected and it works perfect.
Rad Studio 12.3 Athens / 13.0 Ganymede
Offline
Tnxs
Offline
Pages: 1