def get_new_session_id():
global LAST_SESSION_ID  <EOL>LAST_SESSION_ID = LAST_SESSION_ID + <NUM_LIT:1><EOL>if LAST_SESSION_ID > MAX_SESSION_ID:<EOL><INDENT>LAST_SESSION_ID = <NUM_LIT:1><EOL><DEDENT>return LAST_SESSION_ID<EOL>
Generate new session_id.