You may check your domain config.
I solved my "losing session data" changing the scope of cookie session
on php.ini.

I guess you are using a shared host, or a server with more then one domain.



On Tuesday, November 23, 2010, Raph <ra...@epoczta.pl> wrote:
> Hello,
>
> We had weird problem with session data.
>
> Let's say we have a kind of wizard with two steps. In first step we
> saving some data in session i.e.:
>
> $this->Session->write('user.step1.data', 'foo');
>
> In second step we have:
>
> if (!$this->Session->check('user.step1.data')) {
>                 $this->flash(__('No data', true), array('controller'
> => 'user', 'action' => 'step1'), 2);
>  }
>
> $seekId = $this->User->field('id', array('User.data' => $this->Session-
>>read('user.step1.data')));
>
> The problem is that we had situation where data from session
> (('user.step1.data') was missing (I have no idea why) in step, but
> session key 'user.step1.data' left, so condition  'if (!$this->Session-
>>check('user.step1.data'))' was false, and the next line of code was
> actually:
>
> $seekId = $this->User->field('id', array('User.data' => null));
>
> This situation is rare (we had it twice), but dangerous. Did you have
> similiar situations? What's is the reason of it? Maybe it's good idea
> to report this as a bug? But the problem is I can't recreate this
> problem.
>
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com for more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>

-- 

--
Renato de Freitas Freire
ren...@morfer.org

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to