Welcome Guest, Not a member yet? Register   Sign In
Unset session data not working
#1

[eluser]Unknown[/eluser]
I need some help explaing how the following works.

I'm using CI session naitve and i can't unset session variables. I can see the code getting into and executing the unset call but subsequent pages the data isn't unset. I'm specifically using the flash data

Can someone explain to me how the CI code works when register_globals is OFF and your calling unset within a funciton to a passed by referrence session variable?

From what i see on the PHP site it says:
"If a variable that is PASSED BY REFERENCE is unset() inside of a function, only the local variable is destroyed. The variable in the calling environment will retain the same value as before unset() was called. "
#2

[eluser]Unknown[/eluser]
Never mind, this was an issue with the file server not truncating correctly.




Theme © iAndrew 2016 - Forum software by © MyBB