laravel 4 persisting data ongoing - jquery ajax submit

前端 未结 3 525
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 07:16

I\'m having ongoing problems with laravel 4.1 sessions and getting unexpected behaviour.

Depending on how I call the controllers method the session either works or d

3条回答
  •  無奈伤痛
    2020-12-16 08:05

    i have same issues, but when returning XML Response, not JSON.

    I fixed it using session save.

    \Session::put('LOGADO.ID_LOJA', $id_loja.time());
    
    \Session::save();
    

    This fixed everything inside AJAX Calls.

提交回复
热议问题