Remove old session code on the creation of a new post.