0

Kohana Auth 不在 IE 中验证。我已经从 v.2 的讨论中阅读了一些关于从 user_agent 更改为 user_ip 的内容......大概在 AUTH 模块的 ORM 文件中,但这并不能解决我的问题。

v.2 上的另一篇文章建议使用此

<?php defined('SYSPATH') OR die('No direct access allowed.');

/**
 * @package Session
 *
 * Session driver name.
 */
$config['driver'] = 'native';

/**
 * Number of page loads before the session id is regenerated.
 * A value of 0 will disable automatic session id regeneration.
 */
$config['regenerate'] = 0;


// KLUDGE: Windows XP SP3 running IE-7 and 8
// http://bit.ly/gPcV67
$config['validate'] = array('ip_address');

然而,他们没有提到在哪里使用它。

我们在测试中发现了这种情况(关于软件工程在学校缺乏重要性的线索在哪里?)并且在这一点上非常锁定使用 AUTH。为此,我已经把头撞在墙上好几个小时了,几乎没有得到任何结果。

请帮忙!谢谢你,-大卫

4

2 回答 2

0

编辑- 在您接受我的回答后,我注意到您在谈论 Kohana 3/3.1。很抱歉给您提供了错误的信息。很高兴你最后得到了答案。


您粘贴的代码来自配置文件。您需要将内容放在session.php配置目录中调用的文件中。

查看源代码中的完整配置文件:http: //source.kohanaframework.org/svn/kohana2/trunk/system/config/session.php

还要仔细检查 cookie 配置文件中的域。

如果这不起作用,那么您可能需要从 IE 中清除所有临时 Internet 数据,这样您就知道自己正在从头开始工作。

于 2011-04-11T15:57:40.087 回答
0
<?php

    return array(
      'cookie' => array(
          'name' => 'session_cookie',
          'encrypted' => TRUE,
          'lifetime' => 43200,
      ),
      'native' => array(
          'name' => 'session_native',
          'encrypted' => TRUE,
          'lifetime' => 43200,
      ),
      'database' => array(
          'name' => 'session_database',
          'group' => 'default',
          'table' => 'sessions',
      ),
  );

?>
于 2011-04-11T17:55:30.413 回答