These are chat archives for cherrypy/cherrypy

30th
May 2018
qantourisc
@qantourisc
May 30 2018 07:42
@webknjaz Well the last cookie set by cherrypy is not returned by the browser in the next request. But the browser seems to keep a list of cookies with the same "name", and sends an older one...
I might need to "go back" to cookies which I only need to set once.
and store the rest in DB
Sviatoslav Sydorenko
@webknjaz
May 30 2018 09:05
Are you trying to invalidate some cookies? For this you normally need to send a cookie from server with an expiration data in the past. I might need to see some code to fully understand what you want
qantourisc
@qantourisc
May 30 2018 14:16
@webknjaz I need to replace a cookie, so i'd need to expire/invalidate it at the same moment I send a new one ?
And the code is simple: in each HTTP request set the data of the same cookie to something. Maybe i'd need to write a mini demo.
Sviatoslav Sydorenko
@webknjaz
May 30 2018 14:21
it should work without invalidation, you're probably doing smth wrong
qantourisc
@qantourisc
May 30 2018 14:22
Could be :D
qantourisc
@qantourisc
May 30 2018 15:08
Testcode works, will need to do some digging :/ Thanks
Sviatoslav Sydorenko
@webknjaz
May 30 2018 16:09
:+1: