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

2012-07-02 Thread silvioprog
2012/7/2 silvioprog :
> 2012/7/2  :
>> 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
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


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

2012-07-02 Thread silvioprog
2012/7/2  :
> 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
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


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

2012-07-02 Thread michael . vancanneyt



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.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


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

2012-07-02 Thread silvioprog
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. :/

Thx.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel