Fixing issue with session cookies