What would be the most appropriate structure of the module in order to rewrite function validate()
at
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
The idea is to rewrite that block with the following content :
if ($this->useValidateSessionExpire() ) {
// If the VALIDATOR_SESSION_EXPIRE_TIMESTAMP key is not set, do it now
if( !isset($sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP]) ) {
// $this->_data is a reference to the $_SESSION variable so it will be automatically modified
$this->_data[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP] = time() + $this->getCookie()->getLifetime();
return true;
} elseif ( $sessionData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP] < time() ) {
return false;
}
} else {
$this->_data[self::VALIDATOR_KEY][self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP]
= $validatorData[self::VALIDATOR_SESSION_EXPIRE_TIMESTAMP];
}