hi I have a project in laravel that installs it in a shared hosting, this project works properly locally, but when uploading it to the hosting, the session variables have stopped working or are lost immediately when sending a form. for example I have a function:
public function create(){
/Session::put('mi_variable','hola mundo');
dd(\Session::get('mi_variable')); // Aquí si se imprime.
return view('vistas.formulario');
}
public function imprimirVariableDeSesion(){ dd(\Session::get('mi_variable'));//Aquí no se imprime.
}
when the form that returns in the first function is shown and sends me to the function (imprimirVariableDeSesion)
, this variable is no longer displayed