Are there any spaces or new line characters after the " ?> "  ?

On Wed, Aug 24, 2011 at 6:22 PM, pang <[email protected]> wrote:

> Hi,
>
> I met a very odd problem, I create a new controller which request user
> session to access. the session name is called "User".
>
> When I have ?> at the end of the controller file, I can't read session
> data, $this->Session->read('User') is empty,
>
> But when I delete the trail signs  ?> in the controller file, the
> session can be read successfully.
>
>
> I am wondering what's the root cause of this problem?
>
> --
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to