loginstatus control-sessions
-
hi friends i am developing an asp.net project in c#. In a master page i have a loginstatus control on the click of the control i have written: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } which redirects to the login page but from that page, if i type an aspx page in the site information tab where we used to type the webaddress it takes me to the page by the person name who just logged out can anyone help me in this issue. K.Gayathri
-
hi friends i am developing an asp.net project in c#. In a master page i have a loginstatus control on the click of the control i have written: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } which redirects to the login page but from that page, if i type an aspx page in the site information tab where we used to type the webaddress it takes me to the page by the person name who just logged out can anyone help me in this issue. K.Gayathri
-
hi friends i am developing an asp.net project in c#. In a master page i have a loginstatus control on the click of the control i have written: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } which redirects to the login page but from that page, if i type an aspx page in the site information tab where we used to type the webaddress it takes me to the page by the person name who just logged out can anyone help me in this issue. K.Gayathri
-
hi friends i am developing an asp.net project in c#. In a master page i have a loginstatus control on the click of the control i have written: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } which redirects to the login page but from that page, if i type an aspx page in the site information tab where we used to type the webaddress it takes me to the page by the person name who just logged out can anyone help me in this issue. K.Gayathri
MalarGayu wrote:
protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e)
{
Session["UserId"] = "";
Session.Abandon();
Response.Redirect("../Login.aspx");
}There is no need of
MalarGayu wrote:
Session["UserId"] = "";
You can directly use
MalarGayu wrote:
Session.Abandon();
it will clear all variables of session and more over please use
Server.Transfer("");
inseted of
Response.Redirect("")
-
MalarGayu wrote:
protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e)
{
Session["UserId"] = "";
Session.Abandon();
Response.Redirect("../Login.aspx");
}There is no need of
MalarGayu wrote:
Session["UserId"] = "";
You can directly use
MalarGayu wrote:
Session.Abandon();
it will clear all variables of session and more over please use
Server.Transfer("");
inseted of
Response.Redirect("")
hi friends thanks for all your replies i tried: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } it is redirecting but after i got to login.aspx and on the page i type another aspx page it is getting into that page with the last persons login id.... i dont want that to happen so how to do it K.Gayathri
-
hi friends i am developing an asp.net project in c#. In a master page i have a loginstatus control on the click of the control i have written: protected void LoginStatus_LoggingOut(object sender, LoginCancelEventArgs e) { Session["UserId"] = ""; Session.Abandon(); Response.Redirect("../Login.aspx"); } which redirects to the login page but from that page, if i type an aspx page in the site information tab where we used to type the webaddress it takes me to the page by the person name who just logged out can anyone help me in this issue. K.Gayathri
Check this Tip/Trick(It contains clear explanation about all things) Browser back button issue after logout[^]
thatraja
My Dad had a Heart Attack on this day so don't...
Pompeyboy3 here | Nobody remains a virgin, Life screws everyone :sigh: