[fpc-devel] How to delete cookie in fcl-web?

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Mon Jul 2 17:33:30 CEST 2012



On Mon, 2 Jul 2012, silvioprog wrote:

> Hello,
>
> What better way to delete a cookie using fcl-web? Remembering that to
> delete a cookie simply set the 'Thu, 01-Jan-70 00:00:01 GMT' date to
> expires property.
>
> There is a demo in freepascal showing how to do this?
>
> I think it would be interesting to have a method to do this. :/

Presumably a ExpireCookie method can be added to TCookie.
This simply sets the date to the correct value.

Michael.



More information about the fpc-devel mailing list