Cookies Storage and use

Rob Mostyn mostyn at platformis.net
Sun Jan 12 18:06:09 UTC 2025


Hi Mike,

I don’t have an immediate solution for you but you might like to be aware of this recent news from a support request I had:

ST/JS/3690 ER - A way for JS Client Remote Tasks to receive a list of headers from the client
RESTful Remote Tasks allow you to get this information, but JS Client Remote Tasks do not.

Just like for the cookies we added recently, now there's another new row in the first row parameter of a remote task or remote form $construct:headers will contain all the headers we received and their value.

ST/TC/043 - Add cookies to remote task $construct
A remote task's $construct row parameter should now have a new row inside (when cookies are available) named cookies, with each column matching the key of the cookie and the value, its value.

These enhancements will be coming out in 11.2 (currently available if you use Studio Now).

Cheers,
Rob Mostyn

> On 12 Jan 2025, at 13:33, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hello All,
> 
> In this discussion, I am not talking about oBrowser.
> 
> Is there set of instructions on how to use the cookies in a web browsers for a user running the JS client?  I want to store some some user data, and then recall it when the user next uses that browser to connect to Omnis JS server again.
> 
> I have implemented a 2FA system using a mobile phone SMS system, and want to add a time to destruct, but before that destruct time, the user can still use NAME & PASSWORD if the 2FA code was correct.  So a trust kind of setup.
> 
> I’m not sure I could setup an oAUTH2 system at the point however.
> 
> Is this the right way of even doing this, so I don’t have to send a 2FA code each time, so some Sunday thoughts for us.
> 
> Thanks
> 
> Mike Matthews
> 
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>
> 
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
> 
> www.lineal.co.uk<http://www.lineal.co.uk/>
> 
> www.sqlworks.co.uk<http://www.sqlworks.co/>
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list