Welcome Guest, Not a member yet? Register   Sign In
Session expiring right after action
#4

[eluser]bretticus[/eluser]
Ah, I understand now. I wrote a post awhile back that explains this if you want to search.

in a nutshell...

If you have session checking code that redirects using a header only, you simply output a header. That does nothing to stop the rest of the code below it from executing. You must either exit(), die(), or in the case of a method call return. In many cases this is as easy as putting the return/exit/die code in the method you use to check if the user is still logged in.


Messages In This Thread
Session expiring right after action - by El Forum - 02-08-2010, 09:43 PM
Session expiring right after action - by El Forum - 02-09-2010, 12:31 AM
Session expiring right after action - by El Forum - 02-09-2010, 12:43 AM
Session expiring right after action - by El Forum - 02-09-2010, 12:56 AM
Session expiring right after action - by El Forum - 02-09-2010, 11:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB