views:

99

answers:

0

Hello Stackoverflow Users,

Today I've tested the Kohana3, which has been changed a lot.

I'm working so much with the Auth Module, and need this in my new Project also.

Now I found a Bug, I think it is a bug, what can I do?

Problem:

After I'm deleting a user from the Database, who is at this Moment logged_in() in my Website, and he is refreshing the page, he will be logged_in() as the first user out of the PRAEFIX_users Table. Even if he is deleted. And 99% this is an Administrator.

My function which is checking and redirecting if he is not logged_in():

if(!Auth::instance()->logged_in())
{
    $this->request->redirect( 'login' );
}

How can i change my Check Login so, that if he is deleted, he will be redirected to login (/login/) ?

Here the same Thread at Kohana Forums, but I hope and think, stackoverflow is a litte bit faster :)