laravel - Will unsetting Lavarel sessions make all other user logged out also? -


i'm doing laravel 4 web store user's information when logged in using session::put('key','value'). when user logs out there 2 methods know unset it, session::forget('key') , session::flush().

my question is, when session::forget() or flush(), other user that's still logged in logged out also? there way test this?

no, forgetting session logout user logged-in specific system , other remote users not logged-out.

i have tested 1 of project.

you can use auth::logout(); function user logout operation, forge session internally.

using session::forget() , session::flush() clear current user browser.

check api here http://laravel.com/api/source-class-illuminate.auth.guard.html#382-399


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -