Storing current id in session to enable sorting