Input function periodicaly updating and deleting session mechanism