code in some session time limits