SyntaxFix
Write A Post
Hire A Developer
Questions
You only need to do one thing. Run session_object.clear() and then save the new object. This will clear the session (as aptly named) and remove the offending duplicate object from your session.
session_object.clear()