J
JohnE
I have a masterpage that has a hyperlink in the header titled 'Log Out'. The
intent is to have the user select this and it would end all sessions for all
apps that were open and go back to the log in screen. I was looking at using
the following 2 lines to accomplish this.
Session.Abandon();
Response.Redirect("LogIn.aspx");
But, it seems that these are causing havoc when I go to run the website. By
havoc, I mean the website does not want to load. Either the 2 lines are not
correct or I am putting them in the wrong place.
Is there a better way to close it all down than these 2 lines? If these 2
lines are okay then where are they placed?
Thanks...John
intent is to have the user select this and it would end all sessions for all
apps that were open and go back to the log in screen. I was looking at using
the following 2 lines to accomplish this.
Session.Abandon();
Response.Redirect("LogIn.aspx");
But, it seems that these are causing havoc when I go to run the website. By
havoc, I mean the website does not want to load. Either the 2 lines are not
correct or I am putting them in the wrong place.
Is there a better way to close it all down than these 2 lines? If these 2
lines are okay then where are they placed?
Thanks...John