Re: Session date missing after redirect

2015-01-25 Thread Ken Winans
Mark, Thanks for the links to the tools. No, I hadn't searched for tools to handle this but I was getting ready to. I need to go back to several more projects before transferring them so this will be a help. It amazes me how differently this problem (white space after closing tag) can manifest

Re: Session date missing after redirect

2015-01-25 Thread euromark
Hope you didnt have too many files to manually check. You know that there are tons of tools for that, right? E.g. https://github.com/dereuromark/cakephp-tools/blob/master/Console/Command/PhpTagShell.php or https://github.com/dereuromark/cakephp-tools/blob/master/Console/Command/WhitespaceShell.p

Re: Session date missing after redirect

2015-01-24 Thread David Watson
Hi Ken .. Glad to hear that my hint helped it took a long time tracing through code to find it, as it sounds like you had a similar issue, but related to white space - it's very difficult to spot the real issue,as you just get blackholed, with no indication why .. Now that the issue has been docume

Re: Session date missing after redirect

2015-01-23 Thread Ken Winans
It wasn't a call to pr() or an echo. It was whitespace following a closing PHP tag. I just went through every file and got rid of every closing PHP tag. Should have done it a long time ago. I only have myself to blame. :-o -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twit

Re: Session date missing after redirect

2015-01-23 Thread Ken Winans
Thanks, I will do that. 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, se

Re: Session date missing after redirect

2015-01-21 Thread David Watson
Hi Ken .. You may be having the same issue that I had .. you replied to my post as well .. I found out that cake checks for any header (or debug/echo) being sent before the session starts will cause the session not to start your addition of the Cakesession::Start just forces the session start

Re: Session date missing after redirect

2015-01-21 Thread kdubya
I have found a work-around for this problem. I found that Sessions were not being started (on redirect after Auth login) on the server that had PHP 5.4.36 and Cake 2.x. My first work-around was to set session.auto_start=1 in my php.ini file. The Sessions and Auth login worked properly then. I

Re: Session date missing after redirect

2015-01-19 Thread kdubya
Euromark, Thanks for your response. I updated my version of CakePHP to the 2.6.1. Now I can change the setup so that session cookies on the server are written to /app/tmp/sessions. I now see the cookies - each with a name like sess_abd5g143. The client-side cookie content is the GUID that m

Re: Session date missing after redirect

2015-01-19 Thread euromark
You must have some special session setup. For no one else this happens - ever. Try to set up a completely fresh system and debug that one piece by piece. If that happens there too its most likely a server issue. Otherwise it is probably a misconfiguration in your configs in CakePHP etc. mark A

Re: Session date missing after redirect

2015-01-19 Thread kdubya
A kind person on IRC suggested that the problem might be fixed by going to the latest version of Cake. So I updated to 2.6.1 and the problem still exists. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message becaus

Re: Session date missing after redirect

2015-01-19 Thread kdubya
Another factor that might have a bearing on this: the old server had PHP 5.2.17 - the new server has 5.4.36. In my original post I said I had a CakePHP 2.3 and a 1.3 app that were misbehaving. When I switched the 1.3 app to use Session.default='cake', it started working. Now I can switch it bac

Re: Session date missing after redirect

2015-01-19 Thread kdubya
I have tried changing the Session settings in core.php. I have tried both Configure::write('Session', array('defaults' => 'cake')); and 'database'. Each time I do that my error.log fills up with repeated errors that begin: 2015-01-18 17:15:13 Error: [CakeSessionException] Unable to configure the

Session date missing after redirect

2015-01-18 Thread kdubya
First let me say I have looked for answers to this on this forum and in the Book but nothing seems to fit. I have also posted this question on StackOverflow and I apologize if any one is offended by my posting it both places. I have 3 working apps that I am moving from one production server t