我有一个php-codeigniter程序,它在启动时设置一些会话变量,所以在第二页上,系统设置一些其他会话变量(lista,validacao,classe,metodo,tipo)并重定向第三页,所以在第三页中,所有会话变量都是正确的,但是当我点击此页面中的一个链接发送到第四页时,该页面丢失了在第二页中设置的会话变量。
我在Google Chrome,IE和Firefox中对此页面进行了测试,但这个问题只发生在Firefox中。
在第二页打印会话:
Array
(
[session_id] => d964bc724d3fc680c345d0fd2cd451d8
[ip_address] => 192.168.101.151
[user_agent] => Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
[last_activity] => 1390564837
[user_data] =>
[qtdeambientes] => 1
[nomesibe] => Portal SIBE
[nomeambiente] =>
[sibe] => 2
[ambiente] => 12
[nomeusuario] => magno
[tipotabela] => D
[logado] => 1
[codigousuario] => 1377
[codigosetor] => 42
[tipousuario] => C
[codigotabela] => 235
[codigodistribuidor] => 235
[id_grupo] => Array
(
[0] => 123
)
[lista] => Array
(
[0] => 123
)
[validacao] => 1
[classe] => distribuidora/menudistribuidora
[metodo] => cliente
[tipo] => G
)
在第四页打印会话: 看到第二页上定义的变量消失了。
Array
(
[session_id] => d964bc724d3fc680c345d0fd2cd451d8
[ip_address] => 192.168.101.151
[user_agent] => Mozilla/5.0 (X11; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0
[last_activity] => 1390564837
[user_data] =>
[qtdeambientes] => 1
[nomesibe] => Portal SIBE
[nomeambiente] =>
[sibe] => 2
[ambiente] => 12
[nomeusuario] => magno
[tipotabela] => D
[logado] => 1
[codigousuario] => 1377
[codigosetor] => 42
[tipousuario] => C
[codigotabela] => 235
[codigodistribuidor] => 235
[id_grupo] => Array
(
[0] => 123
)
)