Also make shure app/code/core/Mage/Core/Model/Session.php aresure you do not rewrited
modify app/code/core/Mage/Core/Model/Session.php
directly, but copy the file to app/code/local/Mage/Core/Model/Session.php
and make the appropriate modification.
(check local/Mage/Core/Model/SessionMagento will check the local
directory path before using the core
path.php)