zend session expires when refreshed many times

后端 未结 2 850
别跟我提以往
别跟我提以往 2021-01-16 07:37

Zend Gurus:

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

I log into my site, after I\'m logged in, I just press F5 ma

相关标签:
2条回答
  • 2021-01-16 08:15

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

    0 讨论(0)
  • 2021-01-16 08:20

    Some how I got Zend sessions working.. I don't know exactly what I changed, but I banged on it for hours, and suddenly it worked.. Here is what I used.

    I hope this can help others,

    require_once ('Zend/Loader.php');
    require_once ('Zend/Session.php');
    
    
    Zend_Session::setOptions(array('save_path'=>APPLICATION_PATH.'/sessions/'));
    
    Zend_Session::start ();
    
    
    $session = new Zend_Session_Namespace('session');
    Zend_Registry::set('session', $session);
    

    Thanks StackOverFlow _

    0 讨论(0)
提交回复
热议问题