[fpc-devel] How to delete cookie in fcl-web?
silvioprog
silvioprog at gmail.com
Mon Jul 2 23:43:23 CEST 2012
2012/7/2 silvioprog <silvioprog at gmail.com>:
> 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! :)
Patch and demo to test it in:
http://bugs.freepascal.org/view.php?id=22361
thx.
ps. plz sorry for my english. ^^'
--
Silvio Clécio
My public projects - github.com/silvioprog
More information about the fpc-devel
mailing list