$this->Session->valid() strangely returning false
Hello there.
I have this code:
$this->Session->write('somevar',array(1,6)); // Creating somevar test
session variable
debug($this->Session->read()); // Dumping session contents. NOTE: this
displays correctly the contents of "somevar"
if ($this->Session->valid()) {
debug('Session is valid');
}
else {
debug('Session is NOT valid');
}
But $this->Session->valid() always returns false. Why does this happen
if a line before I can successfully print the contents of "somevar"
session variable?
Thanks in advance.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home