Welcome Guest, Not a member yet? Register   Sign In
session unset_userdata not working before redirect
#2

[eluser]Michael Wales[/eluser]
I can't confirm, but I imagine it's because of the way you are redirecting. The default method of redirecting is via a header, which must come before anything else on the pages output (meaning it is coming before your session work). If you switch to the refresh method of redirecting (although messy) it should work properly.

Personally, I would look at refactoring the code a bit - maybe approach the problem in a different manner. I personally dislike the refresh method of redirecting...


Messages In This Thread
session unset_userdata not working before redirect - by El Forum - 03-03-2008, 12:45 PM
session unset_userdata not working before redirect - by El Forum - 03-03-2008, 01:14 PM
session unset_userdata not working before redirect - by El Forum - 03-03-2008, 01:19 PM
session unset_userdata not working before redirect - by El Forum - 03-03-2008, 03:10 PM
session unset_userdata not working before redirect - by El Forum - 03-03-2008, 07:04 PM
session unset_userdata not working before redirect - by El Forum - 03-04-2008, 03:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB