fail to set flashdata after destroy session on logout |
hi,
this is my code: PHP Code: public function logout() so, notice that i setFlashdata after session destroy. it's not triggering the flashdata when redirected to login page. was that intentional or was that a bug? Thanks. just found solution, just use $this->session->remove('merchant');
I think you could also do:
return redirect()->to('/merchant/login')->withCookies();
|
Welcome Guest, Not a member yet? Register Sign In |