zend 会话在多次刷新时过期

问题描述:

禅宗大师:

如果我多次快速刷新页面,我的会话就会过期.. ?

I have a problem that my session expires if I refresh a page many times quickly .. ?

我登录我的网站,登录后,我只是快速按了很多次 F5,然后我的会话到期.我不是专家,但这对我来说很麻烦.

I log into my site, after I'm logged in, I just press F5 many times quickly, and my session expires. I'm no expert, but it's troubling to me.

我应该放弃 Zend Session(s) 吗??任何想法.. ?

Should I just abandon Zend Session(s) ?? Any ideas.. ?

谢谢大家,

-P

这是我检查用户是否登录的方式..

This is how I check if I User is logged in ..

public function isloggedin() {
    $session = Zend_Registry::get('session');
    if ($session->login) {
        return (1);
    }
    else {
        //Application_Model_System::rr_log( "not Logged in");
        return 0;

    }


}

BootStrap.php

BootStrap.php

这是我引导程序中的第一行

This is one of the first lines in my bootstrap

Zend_Session::start();
Zend_Session::rememberMe(864000); // How long the sessions will last
//* is great.. 

为什么不使用 Zend_Auth 用于登录用户?我可以刷新 10 亿次并保持登录状态.

Why don't make use of Zend_Auth for logging in users? I can refresh a billion time and still keep logged in.