Quick fix for initial session cookie setup to prevent keyerror.