when i click Browser back button after logout show previous session information . how to stop this thing ?
Try using $request->session()->flush();
It's just browser cache. It's not actually live data. There's some things you can do but Chrome and other browsers make it hard to stop caching it.
@avaneeshsingh this is code for form process destroy method , but i am using general way like
controller code
public function destroy()
{
auth()->logout();
return redirect('/posts'); //->home()
}
And my front end code
<li><a href="/logout">Logout</a></li>
Route code
Route::get('logout','sessionController@destroy');
@bashy Thank you fro this information but how to control it ? any suggestion please . :/
@towhid Search on your favourite search engine for stop browser caching after logout. There's so many topics on it.
Please or to participate in this conversation.