For PHP in chrome Incognito mode session variable ($this->session->userdata('logged_in');) is null

849 Views Asked by At
 $getdata= $this->input->post();

$session_data = $this->session->userdata('logged_in');
print_r("test1".json_encode($session_data));

1

There are 1 best solutions below

0
On

The following are the steps to allow cookies for the xyz.com domain in the Chrome browser.

  1. On your computer, open Chrome.
  2. At the top right, click More(three vertical dots) > Settings.
  3. Under 'Privacy and security', click Cookies and other site data.
  4. Next to 'Sites that can always use cookies' click Add.
  5. Enter the web address. [*.]xyz.com
  6. Select Add.