So, here I am writing the proper code, which we finally found out and happy news is that, “It really works!”. So just follow this code.
If you applying a MasterPage, then copy these codes to its page load, or copy to that page’s load, which comes after login page or comes before logout page.
And on logout button click, write these codes.
So, if you still getting some kind of problem, please leave comment.
If you liked this article, please rate and comment. Thank You!