Hi Ken 

Thanks for your help, I found the solution after a bit more Investigation 
after taling to someone on the irc chat line .. The solution turned out to 
be some of the debugging statements that I had put in to find out what was 
going on.. The session start that is used by cake-php checks for headers 
being sent before it actually starts the session in 
lib/Cake/Model/Datasource/CakeSession.php.. 

On my localhost development station, the version of php and apache  does 
not consider an echo statement as a "header" that is being sent to the web 
server.. However, on my ISP, the version of php and apache considers echo 
and pr output as "headers" so the session was never started, and there was 
no indication why the session was not started .. 

So, the big thing is that you can't put debug statements before the session 
starts or  cake will not start up the session variable and authentication 
is not possible because the session was not started ..

A very difficult issue to find, but finally explains the strange lack of 
session starting and no error message for the session start other than the 
message

"This web page has been black holed "

and a debug trace that was useless 
 

I hope if any one else has the same problem, my solution will be able to 
help .. 

Cheers

Dave W

On Wednesday, January 21, 2015 at 12:13:02 PM UTC-5, Ken Winans wrote:
>
> Dave,
>
> I was having (what seems like) the exact same problem. You can read the 
> thread about it here: 
> https://groups.google.com/forum/#!topic/cake-php/ORfK1b9AYTU
>
> My solution was to put CakeSession::start() in the beforeFilter() method 
> in my AppController. Everything seems to work fine then. However, I don't 
> believe this should be necessary so I will continue to try to determine why 
> it's needed. 
>
> When you do this, as long as 'default'=>'cake' is set in your core.php 
> file, you should then see the session cookies in app/tmp/sessions.
>
> Can you post the details of your server configure (the one you were having 
> the problem on)? Specifically, Apache, PHP, and CakePHP versions and 
> settings concerning session. The output of phpinfo() would do nicely (with 
> anything sensitive redacted, of course :-)
>
> Thanks,
> Ken
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

Reply via email to