gregmuellegger/django-mobile — pull request #13 by vikalp (2012-04-16 14:51:38+00:00)
Title: Added support for COOKIE.

like sessions, added support for setting cookies for flavour, as sessions get flushed on django auth user logout, and if you want to persist the non login flow on selected flavour there is no way, other then get requests.

Couple of things.

1) COOKIE needs to be set by the code, i didn't change in set_flavour ( if author suggests i think we should do that)
2) COOKIE will only be picked if flavor is None (We might have to look at precedence though in detail)

BTW very nice piece of code, hope this helps, and finds its way into main code. :)

Thanks.