简体   繁体   中英

How to clear sessionstorage item when user logout?

In my controller, how do i clear the sessionStorage item?

public function logout(){
        Auth::logout();
        Session::flush();
        return redirect('/login');
}

I stored some data inside session storage and i want to clear it after user logout. But it will only clear if the browser closed.

要以编程方式清除sessionStorage,请调用sessionStorage.clear();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM