improve cookie for next/previous

the cookie is removed when the issue is accessed directly (not from a
view)