Kohana 3 IE 中的身份验证

发布于 2024-11-01 01:35:54 字数 731 浏览 0 评论 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。为了这个问题,我已经把头撞在墙上好几个小时了,但几乎没有任何进展。

请帮忙! 谢谢你, -大卫

Kohana Auth is not validating in IE. I have read some stuff from discussions on v.2 about changing from user_agent to user_ip... presumably in the ORM file in the AUTH module, how ever this is not resolving my issue.

Another post on v.2 suggest using this

<?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');

They do not mention where to use this at however.

We found this kind of late in testing (where is that thread about the lack of importance of software engineering in school?) and are pretty locked into using AUTH at this point. I have been beating my head against a wall for hours over this and have gotten virtually no where.

Please HELP!
Thank you,
-David

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

轻许诺言 2024-11-08 01:35:54

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


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

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

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

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

Edit - I noticed you were talking about Kohana 3/3.1 after you accepted my answer. Sorry for giving you the wrong information. Glad you got the answer in the end.


That code you pasted is from a configuration file. You need to put the content in a file called session.php in your config directory.

Have a look at the full configuration file from the source code: http://source.kohanaframework.org/svn/kohana2/trunk/system/config/session.php

Double check the domain in your cookie configuration file too.

If that doesn't work then you might need to clear all the temporary internet data from IE so you know you're working on a clean slate.

烟─花易冷 2024-11-08 01:35:54
<?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',
      ),
  );

?>
<?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',
      ),
  );

?>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文