douqiju2520
2017-01-10 07:31
浏览 40
已采纳

Codeigniter是否具有默认的会话值?

Even if I use session_destroy() in my logout controller var_dump($_SESSION); gives some output like array(1) { ["__ci_last_regenerate"]=> int(1484032559) } after user has logged out. For this reason I think the following code for login controller is not working properly:

function login()
{
  if(!isset($_SESSION['user']))
  {
    $this->load->view("log");
  }

  else
  {
    /********login details verification*******/
  }

If so is the case how to destroy session after user logout? Can anyone help please? Thanks.

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题