Ending zend session when updating again

Zend Gurus:

I have a problem with my session if I refresh the page many times quickly.?

I sign up to my site, after I logged in, I just press F5 many times quickly and my session expires. I am not an expert, but it bothers me.

Should I just give up Zend sessions? Any ideas ..?

Thanks everyone

-P

This is how I check if a user is registered.

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

This is one of the first lines in my bootstrap.

Zend_Session::start();
Zend_Session::rememberMe(864000); // How long the sessions will last
//StackOverFlow is great.. 
+1
source share
2 answers

Why not use Zend_Auth to log in users? I can update a billion times and still log in.

+1
source

, Zend. , , , . .

, ,

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

StackOverFlow _

+2

All Articles