Welcome Guest, Not a member yet? Register   Sign In
How works sessions ?
#4

[eluser]Vadorequest[/eluser]

$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
It's better as that ^^ Before I have config with vars but it's do a problem.

But I've always a problem... My BDD is updated with local session php but my vars in user_data as been destroyed >< user_data also.

Code:
array(4) {
  ["session_id"]=>
  string(32) "7c6ee3638580e9fe222c433b0531ccfd"
  ["ip_address"]=>
  string(9) "127.0.0.1"
  ["user_agent"]=>
  string(106) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5"
  ["last_activity"]=>
  int(1339353883)
}

The key 'user_data' is not exists. But in BDD I've:
Code:
a:2:{s:9:"user_data";s:0:"";s:6:"errors";a:1:{i:0;a:3:{s:7:"message";s:46:"La langue sélectionnée n'est pas autorisée.";s:9:"displayed";b:0;s:4:"type";s:5:"error";}}}


If I do var_dump just after I've update the session php I have:
Code:
array(5) {
  ["session_id"]=>
  string(32) "7c6ee3638580e9fe222c433b0531ccfd"
  ["ip_address"]=>
  string(9) "127.0.0.1"
  ["user_agent"]=>
  string(106) "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5"
  ["last_activity"]=>
  int(1339353883)
  ["errors"]=>
  array(1) {
    [0]=>
    array(3) {
      ["message"]=>
      string(46) "La langue sélectionnée n'est pas autorisée."
      ["displayed"]=>
      bool(false)
      ["type"]=>
      string(5) "error"
    }
  }
}

But my key 'errors' dissapear after a new load page.

Thanks for your help.


Messages In This Thread
How works sessions ? - by El Forum - 06-10-2012, 06:44 AM
How works sessions ? - by El Forum - 06-10-2012, 08:48 AM
How works sessions ? - by El Forum - 06-10-2012, 09:36 AM
How works sessions ? - by El Forum - 06-10-2012, 11:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB