function checkInactivity() {
	if ( ($.cookie('inactive_tracker')) == null ) {
		window.location = "/user/logout/";
	}
}
var futdate = new Date()
var expdate = futdate.getTime()
expdate += 3600*1000 //expires in 1 hour(milliseconds)
futdate.setTime(expdate)

$.cookie('inactive_tracker', null );
$.cookie('inactive_tracker', futdate.getTime(), { expires: futdate, path: '/' });

setInterval ( "checkInactivity()", 5000 );

