Authentication

Posted 5 months ago by [email protected]

Hi EveryOne. i have a dashboard for web site management.when site managers Exit from dashboard press Exit button the Exit link execute below code


Route::get('/logout', function(){
    //logout user
    auth()->logout();
    // redirect to homepage
    return redirect('/');
});

But with browser back page button can again see dashboard panel . if they click on link inside dashboard be redirected to login page.Please help me solve this problem.Thanks

Please sign in or create an account to participate in this conversation.