首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >坦克意外登出

坦克意外登出
EN

Stack Overflow用户
提问于 2013-07-16 16:00:05
回答 1查看 119关注 0票数 1

我正在使用坦克在我的项目,但在工作期间,会议意外地到期。

代码语言:javascript
复制
    public function __construct()
{
    parent:: __construct();


    $this->load->model("stulib");

    $this->load->library("Gen");
    $this->load->model('tank_auth/users','users');
    $this->load->library('tank_auth');
    $this->title='Angel';
    $this->user_id=$this->tank_auth->get_user_id();
    $this->school_id=$this->users->get_school();
    $this->school_name=$this->users->get_school_name($this->school_id);
    $this->yesterday=$this->studentlib->yesterday();

    if(!$this->tank_auth->is_logged_in())
      die("No access rio!");

}

那是我的控制器。我只在控制器的构造函数处检查is_logged_in。

编辑:

  • 我把会话存储在数据库中
  • 我没有使用任何ajax请求
  • 我使用twitter引导框架
EN

回答 1

Stack Overflow用户

发布于 2013-07-16 21:07:24

我也有类似的问题坦克奥斯和CodeIgniter 2.1。

您可以在这里找到详细的解释和解决方案。

http://www.hiretheworld.com/blog/tech-blog/codeigniter-session-race-conditions

这些链接也可以帮助您:http://ellislab.com/forums/viewthread/199753/#962141

http://ellislab.com/forums/viewthread/203821/#951378

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17681472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档