Revert "CONTENT-2929: I have just put a method to just check if session is expired. i know this issue is related to Content but this file belongs to Platform thats why i am pushing this file to the Platform. I didnt create duplicate issue for Platform because this file is not effecting anything unless I put other file which is calling this function."

This reverts commit 19ea3128003c6668b0431c15184f1b912448e523.