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

silvioprog silvioprog at gmail.com
Mon Jul 2 17:39:00 CEST 2012


2012/7/2  <michael.vancanneyt at wisa.be>:
> 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.

I'll make a patch to implement this. Thx guy! :)

-- 
Silvio Cl├ęcio
My public projects - github.com/silvioprog



More information about the fpc-devel mailing list