Welcome Guest, Not a member yet? Register   Sign In
Session lost after refresh page!
#3

(07-01-2020, 08:48 AM)captain-sensible Wrote: i don't think anybody can help with this since there is not enough information to go on.

Maybe you post your code your playing with in the controller , but as a starter ..in every controller
involved in a session , my approach is to put
session_start(); //at the start might not be the best approach but works for me
 



public function credentials()

{
session_start();
I have same mistake.
In login Controller


Quote:$this->session->set($data['user']);
redirect()->to(site_url('/'));

But after redirect, session is null.
Thank you for your help!.

Reply


Messages In This Thread
Session lost after refresh page! - by macphisto - 06-30-2020, 04:02 AM
RE: Session lost after refresh page! - by truongict - 11-25-2020, 07:20 PM
RE: Session lost after refresh page! - by Gary - 11-26-2020, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB