I am using the following code to remove a attribute from session List<User> l=(List<User>) sess.getAttribute(\"allUserslist\");