Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Log out Help

G.ManivannanG.Manivannan Posts: 43Member
Hai,

I am new to Asp.Net programming. I am doing one webapplication in Asp.Net with Vb.Net 2005 and database as Mysql 5.0.

While login I am storing the userid as session. The userid is in double datatype.
When I click logout I just clear the session and redirect to home page.
It is happening perfectly.

But I am facing one problem in this. When I click "BACK" in the Internet Explore or Mozila firefox it redirecting to the previous page which should not be occured. How can I overcome this issue?

I had tried the following things,
Session.Abondon()
Session.Clear()

Thanks in Advance,


G.Manivannan, M.Sc.,[it],
Programmer,
Bangalore.

Comments

  • bradwangbradwang Posts: 197Member
    : Hai,
    :
    : I am new to Asp.Net programming. I am doing one webapplication in
    : Asp.Net with Vb.Net 2005 and database as Mysql 5.0.
    :
    : While login I am storing the userid as session. The userid is in
    : double datatype.
    : When I click logout I just clear the session and redirect to home
    : page.
    : It is happening perfectly.
    :
    : But I am facing one problem in this. When I click "BACK" in the
    : Internet Explore or Mozila firefox it redirecting to the previous
    : page which should not be occured. How can I overcome this issue?
    :
    : I had tried the following things,
    : Session.Abondon()
    : Session.Clear()
    :
    : Thanks in Advance,
    :
    :
    : G.Manivannan, M.Sc.,[it],
    : Programmer,
    : Bangalore.


    First of all, you should use forms authentication.

    Look at the tutorials here:
    http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=85
    http://www.15seconds.com/issue/020220.htm

    Second, for the "BACK" button in IE and FF, I think this is the right behavior. However, you cannot access any protected resources if you are using forms authentication.

    Hope this helps you to some extent...

    I'm Brad Wang...
    .NET Freelancer from China
    MSN: brad_wang_cn@hotmail.com
    Skype: brad_wang
Sign In or Register to comment.