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:
phpnut 2007-09-16 19:05:31 +00:00
parent 7c40e8d6c9
commit 337c81bc74

View file

@ -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);
}
}
?>