I want to clear the session and auto redirect the user to login page if the user is idle for some specific time .
i found , by using set_expiry() function we can set the idle time ,but actually it clear the session after the specific time even if the user is not idle .
i handle the above situation by setting the set_expiry(get_expiry()) function on each request .
but it dose not redirect the user automatically ,instead after the idle time out if the user click any link then only it redirect to login page.
how to auto redirect after idle time out ? plz help .