added function get_session_id to fix disappearing session_id for post