Updated session ajax query

Updated in order to get them work again