Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-07

How to delete cookie in fcl-web?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Unknown author
to silvioprog
silvioprog wrote 9 lines
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.

Reply by email

silvioprog
to Unknown author

2012/7/2 :

Show quoted text 17 lines
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

Reply by email

silvioprog
to silvioprog

2012/7/2 silvioprog :

Show quoted text 20 lines
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

Reply by email