I have a simple long polling situation.

jQuery

```
function poll(){
    $.get(url,{},function(data){ poll(); });
}

```

PHP *(timing stuff deleted for brevity)*

```
function responds_to_poll()
{
    if( ! $this->current_user()->is_logged_in())
    {
        redirect('auth/login');
    }

    echo json_encode("Whats up?");
}

```

I'll watch Firebug for 5-10 minutes and it works fine but eventually it will say `GET (302 Redirect)` and the response will contain the html in my `auth/login.php` file.

The sessions are database driven with native `CI_Session` class. They expire after 2 hours, not 5-10 minutes. I've tried a couple things seen in other questions but nothing has worked so far. What am I missing?