I have a quick question about using sessions across different windows. I'm currently trying to create a login screen for a web app that I'm creating and I was wondering if this flow will work by enabling sessions:
- Window A: User inputs basic account information and is stored inside sessions
- A new popup Window B is open and user is authenticated via Google oauth. I store the token
session[:credentials] = generated_credentials
. User closes Window B. - Window A has access to
session[:credentials]
I guess my question here is if step 3 is valid because I'm trying to essentially listen for a new cookie
Thank you for your help!