[Gambas-user] SetCookie/DeleteCookie

Hans Lehmann hans at gambas-buch.de
Sun Jan 3 12:14:18 CET 2021


I still use the WebPage class for creating web pages, because 
gb.web.form is considered obsolete, gb.web.gui is hidden in the project 
settings and the syntax suits me because I know the PHP language well.

I would like to work on the following 2 tasks:

* Set a cookie with the name "N", the value "V" and a lifetime "E" of 1 
hour (for example).
* Deleting the cookie before "E" expires.

At the moment I can't find an approach for both solutions. In addition, 
I have no idea how to control the setting and deletion of the cookie.
Can anyone help me with tips and source code snippets?

With kind regards


More information about the User mailing list