Idle User Logout

Hi this post is for implementing idle user logout. I have written it using wordpress db object. Because wordpress is based on cookies and default expiry time is 2 weeks. But wordpress does not provide any intuit functionality for logging…