|CakePHP Official Site · Rules and Regulations||Help Search Members Calendar Shoutbox|
|Welcome Guest ( Log In | Register )||Resend Validation Email|
Posted: Sep 22 2011, 06:37 PM
Member No.: 3153
Joined: 22-September 11
I need to save some system data as session variables...
function view($id = null)
// more scirpt follows that now sets the same session keys with relevant values
I use the initial block of code to reset the session variables before writing fresh values to them.
Strangely with this code, (or even if I use Session->destroy(key)), the new values that I assign later in the same function do not get saved.
When I remove that block of code, they do get saved.
This is very strange and I am not finding an explanation or a work around. I have set session save to database.
Looking for some ideas or suggestions.
Posted: Jan 6 2013, 07:46 AM
Member No.: 3742
Joined: 6-January 13
It's simple. I try to do and see.