Bug 999049: Check login tokens instead of login cookies