Welcome Guest, Not a member yet? Register   Sign In
Annoying codependant library problem
#7

[eluser]webthink[/eluser]
I know what you're talking about... the problem here is that session is not only loaded (when autoloaded) but it's also "run" IE all the checking to see if it's a valid session happens upon construction.

I think though that it's bad form to put your logout business logic within the session handler itself and this is where you're falling down. What you could do is to change the session handler to set an attribute ($this->expired = TRUE) then have a hook (or some other form of auto run code) that checks that attribute and if ($this->session->expired == TRUE) $this->auth->logout;


Messages In This Thread
Annoying codependant library problem - by El Forum - 04-02-2008, 10:07 PM
Annoying codependant library problem - by El Forum - 04-02-2008, 10:19 PM
Annoying codependant library problem - by El Forum - 04-02-2008, 10:35 PM
Annoying codependant library problem - by El Forum - 04-02-2008, 10:36 PM
Annoying codependant library problem - by El Forum - 04-03-2008, 12:00 AM
Annoying codependant library problem - by El Forum - 04-03-2008, 12:23 AM
Annoying codependant library problem - by El Forum - 04-03-2008, 12:40 AM
Annoying codependant library problem - by El Forum - 04-03-2008, 12:47 AM
Annoying codependant library problem - by El Forum - 04-03-2008, 06:25 PM
Annoying codependant library problem - by El Forum - 04-04-2008, 12:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB