Unless you’re using a server side session store there’s no way to drop a session from the server side. The default session store is cookie based. You have no control over the cookie (on the client).
Depending on the system used for authentication you could however still for the user to be logged out on their next request. E.g. mix phx.gen.auth stores valid user token in the db, which you can remove to invalidate a users logged in status. This would indirectly cause the session to be dropped as well.
I am not soo much aware of dealing with session in phoenix.
But we get a profile code in the callback and we fetch details from provider,and put in session. then just do Conn|> configure_session(renew: true)
So I have to impl Plug.Session.Store behaviour , where operation are on db and just mention the module name in session options? @session_options [
# Authentication lasts only 3hours