Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set cookies with redirect in Pylons

In light of the cookie-handling bugs affecting Safari and Chrome (see this thread), and Pylons implementation of redirect_to as an exception, is it possible to reliably set a tracking cookie and redirect at the same time? Is the META refresh method looked down upon?

like image 650
emrosenf Avatar asked Nov 15 '22 12:11

emrosenf


1 Answers

Drilling down a bit, the webkit folks say it's not their problem, so the possible solutions aren't as pretty. One possible ugly solution: setting the tracking information in the beaker session (if you're using beaker?) and retrieving it from the page that you're redirecting to, setting a cookie at that later stage.

like image 122
Brighid McDonnell Avatar answered Dec 18 '22 01:12

Brighid McDonnell