Hi All.
I have ununderstanding bug with session:
i have 2 methods in one of controllers:
...
// this method generate form
// with hidden field 'code'
//
function makeform() {
....
$code = {some alphanumeric code generated here}
$this->set( 'code', $code );
$this->Session->write( 'code', $code );
.....
}
// save form funcrion
//
function postform() {
$code_from_form = $this->params['form']['code'];
$code_from_sesison = $this->Session->check('code') ? $this->Session-
>read('code') ? false;
}
$code_from_session always different from $code_from_form
Can anybody help me?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---