简体   繁体   中英

Firefox session storage is empty

Codeigniter:

$this->session->set_userdata('logged_in', $userinfo);
if(isset($this->session->userdata['logged_in'])){
    echo 1;
}

When I am calling this function by using ajax method it displaying me 1. it means session is set. but after redirection I check storage there is no session How can I resolve this error please help me it working well in Chrome.

Edit-1: I checked by using firebug session is set but after redirection there is no session. I am redirecting to same page.

您必须使用括号,而不是括号

$this->session->userdata('item');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM