Welcome Guest, Not a member yet? Register   Sign In
Session / Login help
#15

[eluser]Stefan Hueg[/eluser]
[quote author="InsiteFX" date="1335839899"]
@stefan Hueg,
And how do you figure I have missed directed him?

If you do not unset the session userdata it will still exist, because there is no telling when the garbage collector will clear out the session!

Look at your session table and tell me how many sessions you have left in it...
[/quote]

Look closely at the sess_destroy() function at the session class. It will delete the entry from your session table and reset the cookie. No need to manually unset the userdata.

But not only that, his misconception was that he tried to do a redirect in a view if the user is not logged in.


Messages In This Thread
Session / Login help - by El Forum - 04-30-2012, 03:13 PM
Session / Login help - by El Forum - 04-30-2012, 03:14 PM
Session / Login help - by El Forum - 04-30-2012, 03:18 PM
Session / Login help - by El Forum - 04-30-2012, 03:23 PM
Session / Login help - by El Forum - 04-30-2012, 03:30 PM
Session / Login help - by El Forum - 04-30-2012, 06:18 PM
Session / Login help - by El Forum - 04-30-2012, 06:19 PM
Session / Login help - by El Forum - 04-30-2012, 06:27 PM
Session / Login help - by El Forum - 04-30-2012, 07:38 PM
Session / Login help - by El Forum - 04-30-2012, 10:18 PM
Session / Login help - by El Forum - 04-30-2012, 10:19 PM
Session / Login help - by El Forum - 04-30-2012, 10:20 PM
Session / Login help - by El Forum - 04-30-2012, 10:23 PM
Session / Login help - by El Forum - 04-30-2012, 11:18 PM
Session / Login help - by El Forum - 05-01-2012, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB