Logout problem
-
I am using MS-ACCESS with ASP.NET & C#. To maintain the session my code is. if (ds.Tables[0].Rows.Count > 0) { Session["SUBSCRIBER_USERNAME"] = Login1.UserName; Session["SUBSCRIBER_PASSWORD"] = Login1.Password; } else { Response.Redirect("index.aspx"); } I have 3 other pages in my web application. I have a logout button on all the 3 pages onwhich I want to apply logout coding. How can it be done? Please help. Thanks.
-
I am using MS-ACCESS with ASP.NET & C#. To maintain the session my code is. if (ds.Tables[0].Rows.Count > 0) { Session["SUBSCRIBER_USERNAME"] = Login1.UserName; Session["SUBSCRIBER_PASSWORD"] = Login1.Password; } else { Response.Redirect("index.aspx"); } I have 3 other pages in my web application. I have a logout button on all the 3 pages onwhich I want to apply logout coding. How can it be done? Please help. Thanks.
Purish Dwivedi wrote:
have a logout button on all the 3 pages onwhich I want to apply logout coding
you can use Session.Abandon(); in each of the button click
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
I am using MS-ACCESS with ASP.NET & C#. To maintain the session my code is. if (ds.Tables[0].Rows.Count > 0) { Session["SUBSCRIBER_USERNAME"] = Login1.UserName; Session["SUBSCRIBER_PASSWORD"] = Login1.Password; } else { Response.Redirect("index.aspx"); } I have 3 other pages in my web application. I have a logout button on all the 3 pages onwhich I want to apply logout coding. How can it be done? Please help. Thanks.
-
Purish Dwivedi wrote:
have a logout button on all the 3 pages onwhich I want to apply logout coding
you can use Session.Abandon(); in each of the button click
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
Thanks for the reply. My problem is that: I am maintaining session only in first page(login page). How can I maintain it in other pages? Plz help..
-
Thanks for the reply. My problem is that: I am maintaining session only in first page(login page). How can I maintain it in other pages? Plz help..
you can use a label and maintain the user in that label.... or if you dont want to show the user to others you can maintain it via hiddenfield or some string........
Padmanabhan My Articles: Articles[^] My latest Article: Word Automation[^]
-
I am using MS-ACCESS with ASP.NET & C#. To maintain the session my code is. if (ds.Tables[0].Rows.Count > 0) { Session["SUBSCRIBER_USERNAME"] = Login1.UserName; Session["SUBSCRIBER_PASSWORD"] = Login1.Password; } else { Response.Redirect("index.aspx"); } I have 3 other pages in my web application. I have a logout button on all the 3 pages onwhich I want to apply logout coding. How can it be done? Please help. Thanks.