Monday, August 31, 2009

Losing Session on Redirect

Hi everyone,

I've read through all the various posts regarding losing session data
on redirects. Tried most everything, including

* Setting security to low
* Toggled useragent check off
* Tried starting session manually
* Within redirect function and commented out anything regarding
sessions
* Storing sessions in database

After setting security to low and commenting out items in redirect
function, I can now redirect without losing session data about 75%
time, but there's still occasions, including anytime I delete a
record, where the session is totally wiped out.

In addition, even when I redirect and do NOT lose session data, the
session 'flash' data is never carried over.

In my research, I read that this could be a larger PHP issue, than
just Cake, but wanted to post and start discussion again.

Has anyone come up with a foolproof method for redirecting without
losing session data everytime?

I'm on PHP 5.6.5, Cake 1.2.4.8166.

Thanks!
Wilson

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: