fixes #2485
Merge pull request #2784 from digi604/fix-2485

fixes #2485 (use django to set cookie expire headers)