I would like to have my Gtk Glade website destroy a users session if they have been idle for 5 minutes. If this does happen, I'd like to present the user with a message stating why they were logged out and redirect them to the login page.

Is they any function to handle this.. 'm new to gtk glade. kindly help on this