Welcome Guest, Not a member yet? Register   Sign In
Session problem
#3

(08-28-2023, 06:30 PM)kenjis Wrote:
(08-28-2023, 07:34 AM)pippuccio76 Wrote: I store session in db as documentation , i dont know why the record in db  after few second are deleted

It should not happen. I don't know why but you did something wrong.


The problem is that doing the same operation sometimes it logout and sometime not , in this operation by confirm with message  i use flash data :
Code:
    public function attivaRecord($id){

        $documento_arrivo_model = new Documento_arrivoModel();

        session()->set('id_documento_arrivo_attivo',$id);

        if(isset($_SESSION['id_documento_arrivo_attivo'])){

             session()->setFlashdata('gestisciRecordOK', 'Attivazione correttamente effettuata');

             return redirect()->to('/user_Documento_arrivo/lista_completa/');

        }else{

            session()->setFlashdata('gestisciRecordBad', 'Problemi Attivazione');

            return redirect()->to('/user_Documento_arrivo/lista_completa/');

        }

    }


 What could it be ?
Reply


Messages In This Thread
Session problem - by pippuccio76 - 08-28-2023, 07:34 AM
RE: Session problem - by kenjis - 08-28-2023, 06:30 PM
RE: Session problem - by pippuccio76 - 08-28-2023, 11:27 PM
RE: Session problem - by pippuccio76 - 08-29-2023, 11:26 PM
RE: Session problem - by ozornick - 08-29-2023, 11:42 PM
RE: Session problem - by pippuccio76 - 08-30-2023, 12:03 AM
RE: Session problem - by ozornick - 08-30-2023, 12:33 AM
RE: Session problem - by pippuccio76 - 08-30-2023, 12:37 AM
RE: Session problem - by ozornick - 08-30-2023, 01:56 AM
RE: Session problem - by pippuccio76 - 08-30-2023, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB