If you did not allow "remember me" user should be logged out anyway when browser is closed. And look at: https://stackoverflow.com/questions/58584205/laravel-user-logout-on-browser-close Just suggestion.
Sep 9, 2021
1
Level 18
How to destory customer session id dynamically
I know if we would use mysql database as session storage we could query and delete session id using user_id but how about redis. We are using redis in that case how can I remove particular customer session and forge him to logout
Schema::create('sessions', function ($table) { $table->string('id')->primary(); $table->foreignId('user_id')->nullable()->index(); $table->string('ip_address', 45)->nullable(); $table->text('user_agent')->nullable(); $table->text('payload'); $table->integer('last_activity')->index(); });
Please or to participate in this conversation.