zend session expires when refreshed many times

后端 未结 2 851
别跟我提以往
别跟我提以往 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: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 _

提交回复
热议问题