Store task id in session to avoid cache timeout

Fixes Inboxen/website#179