M
M
mrSeller2018-03-19 21:03:36
Sessions
mrSeller, 2018-03-19 21:03:36

Sessions are not deleted or reassigned in laravel - what's the matter?

I set the test session in the AppServiceProvider. Session::put('bla', 'бла-бла')
I successfully display it in the template session()->get('bla')
. But then I can neither delete nor reassign it.
I'm trying to delete: Session::forget('bla')- nifiga, it is still displayed in the template.
I also tried to reassign it - it's pointless.
I created a new one-time session via Session::flash() - it turned out to be not one-time, and now it is always output and is not deleted.
How so?
How to get rid of an open session?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2018-03-19
@mrSeller

I don't see the error, try this
$request->session()->forget('bla');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question