hi!
i am placing one logout button in my webpage. when user click logout button. user can click logout button, then user logout from his account. i am write coding under Logout button like:
Session["Username"] == null;
Response.Redirect("UserLogin.aspx");
my problem is if i click back button of the page then previous page (User using page) is displayed. my aim is if i click back button of the page after logout then it display only the UserLogin page. Please give a solution.
Thanks
Loading
Dipa AhujaPosted Apr 17, 2010, 1:36 PM
murali kPosted Jul 13, 2012, 8:18 AM
d button wil automatically get disabled
Dipa AhujaPosted Apr 20, 2010, 7:11 AM
ajay rajuPosted Apr 20, 2010, 1:41 AM
one doubt diya, if we write program for some creditcards. means like shopping cart. user buy a credits from my site. he give a credit card number. after he buy credits that much of amount is cut in his account.
in this type of applications how to write code? first we approach any banks?( for confirmation of creditcard number).
please tell me a process of we do this type of web apps?(shoping cart).
can u provide code for these apps?
Thanks.
ajay rajuPosted Apr 17, 2010, 9:23 AM
Thank u for giving a quick replay. i am doing the Session value is null. but click the back arrow symbol of the it display previous page means user using page.(it not shown logedout user content . but page is displayed) my aim is if user click back arrow symbol of that page. it display user login page.
i think it is enough to explain my problem.
Thanks.
arun rajuPosted Apr 17, 2010, 8:42 AM
when user clicks the logout the session value must be made to null like this Session["Username"] = null; then the session value is cleared and user may successfully logged out.
try this..