ip_session implementation