removed some redundant code
store location system. also changed the session length in the php.ini. 24 hours is to long.