AviationCode's avatar

difference between using Session facade and app('session')

Using default validation in controllers fails to redirect me back to previous page, after debugging it seems that app('session')->previousUrl()is null.

After more debugging I found out that app('session') returns another session id compared to \Session::all()

Is there is difference between the two and how can I make app('session') back get the correct session id.

0 likes
0 replies

Please or to participate in this conversation.