计算机未保存会话 [英] Computer isn't saving session
本文介绍了计算机未保存会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
计算机上的会话不会跨页保存。它在我的电脑上,但不是在一个不同的。计算机已启用Cookie。有没有什么可能会导致计算机不保存会话?
The session on a computer is not being saved across pages. It is on my computer, but not on a different one. The computer has cookies enabled. Is there anything that might cause a computer not to save sessions?
推荐答案
if (!$this->session->userdata('admin_logged_in') {
redirect('/auth/');
}
此代码缺少一个)
这意味着它不会在PHP解析。您是从代码中复制和粘贴的吗?
This code is missing a )
which means it wouldn't parse in PHP. Did you copy and paste from your code?
这篇关于计算机未保存会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文