session out using windows authintication

  • Thread starter Thread starter mkhawley
  • Start date Start date
M

mkhawley

hello everyone,

I am trying to make session out when I click logoff button using
windows authentication.
Could anyone help me out with this issue, please?

Thanks in advance!
 
Hello Peter,

I tried the Session.Abandon() method. But after log off, when I click
the back button or link button to the web site, it still takes me to
the web site without login.

what's the problem?
Thanks.

miky
 
Miky,
Session normally has nothing to do with Authentication. You asked how to
kill the session, and so that's what I answered. With Windows authentication
the user's credentials are transmitted automatically by the browser.
Maybe you want to use Forms Authentication? Then you can call the SignOut
method when the user logs off, and their FormsAuthentication ticket cookie
will be gone.
Peter
 
To add to Peters advice..
you can perform a client side trick by doing
javascript:window.history.forward(1);
its not a proper way but it works
just add that to the page you are pointing to.
Hope that helps
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top