How to forcefully log out a user

The following code sample shows how to forcefully log out a user

protected void Page_Load(object sender, EventArgs e)
source code...........
<script type="text/javascript" language="javascript">
function redir(){




Guest Author: Maruf20 Sep 2013

Please let me know if you're looking for a article writer for your blog. You have some really great posts and I think I would be a good asset. If you ever want to take some of the load off, I'd really like to write some material for your blog in exchange for a link back to mine. Please shoot me an e-mail if interested. Regards!

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: