Index: branches/RC/core/kernel/application.php =================================================================== diff -u -N -r10779 -r10780 --- branches/RC/core/kernel/application.php (.../application.php) (revision 10779) +++ branches/RC/core/kernel/application.php (.../application.php) (revision 10780) @@ -326,6 +326,8 @@ } $this->HttpQuery->AfterInit(); + + $this->Session->ValidateExpired(); if( defined('DEBUG_MODE') && $this->isDebugMode() ) { $this->Debugger->appendTimestamp('Processed HTTPQuery AfterInit'); @@ -1148,21 +1150,21 @@ * @param string $var Variable name * @param mixed $val Variable value */ - function StoreVar($var, $val) + function StoreVar($var, $val, $optional = false) { $session =& $this->recallObject('Session'); - $this->Session->StoreVar($var, $val); + $this->Session->StoreVar($var, $val, $optional); } function StorePersistentVar($var, $val) { $this->Session->StorePersistentVar($var, $val); } - function StoreVarDefault($var, $val) + function StoreVarDefault($var, $val, $optional=false) { $session =& $this->recallObject('Session'); - $this->Session->StoreVarDefault($var, $val); + $this->Session->StoreVarDefault($var, $val, $optional); } /** @@ -1179,11 +1181,11 @@ * @param mixed $ses_var Session variable name * @param mixed $default Default variable value */ - function LinkVar($var, $ses_var = null, $default = '') + function LinkVar($var, $ses_var = null, $default = '', $optional = false) { if (!isset($ses_var)) $ses_var = $var; if ($this->GetVar($var) !== false) { - $this->StoreVar($ses_var, $this->GetVar($var)); + $this->StoreVar($ses_var, $this->GetVar($var), $optional); } else { $this->SetVar($var, $this->RecallVar($ses_var, $default));