mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Removing ability to write to a session using the SessionHelper.
All writing to the session should be handled in the Controller git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5657 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7c40e8d6c9
commit
337c81bc74
1 changed files with 10 additions and 0 deletions
|
@ -161,5 +161,15 @@ class SessionHelper extends CakeSession {
|
|||
return parent::valid();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Override CakeSession::write().
|
||||
* This method should not be used in a view
|
||||
*
|
||||
* @return boolean
|
||||
* @access public
|
||||
*/
|
||||
function write() {
|
||||
trigger_error(__('You can not write to a Session from the view', true), E_USER_WARNING);
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in a new issue