In the commited code i have created 2 function load_session and dump_session which is used for loading and dumping the session object in ~/.codeforces-toolbox/session respectively and also created the check time function which will check the SESSION path session last modified time and compare with current time if that exceeds more than one day (codeforces cookies expire in one day if rememeber for a month is not activated while login)then it auto logins again.To remove excess code i have written login in seprate function
In the commited code i have created 2 function
load_session
anddump_session
which is used for loading and dumping the session object in~/.codeforces-toolbox/session
respectively and also created the check time function which will check the SESSION path session last modified time and compare with current time if that exceeds more than one day (codeforces cookies expire in one day if rememeber for a month is not activated while login)then it auto logins again.To remove excess code i have written login in seprate functionAlso ran some tests
please have a look :smile: