You are not logged in.
Pages: 1
Is there a way to save custom Data in TSQLAuthUser when a session closes?
Offline
TSQLAuthUser is a regular mORMot TSQLRecord, and Data is a regular BLOB field.
So you can call TSQLRest.UpdateBlob(...) to update its content (or just Update if you have set TSQLRestClientURI.ForceBlobTransfert property).
Offline
What I can't work out is where to do this update. TSQLRestServer.SessionGet deletes outdated sessions - so I want to do an update when this happens. Is there a way without editing mORMots's source?
Offline
I've added a session parameter to the Service callbacks.
See http://blog.synopse.info/post/2011/11/2 … -prototype
It may help you.
Offline
Pages: 1