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 AhujaRank #1,168 · 1.5K reputationPosted Apr 17, 2010, 9:36 AM EDT
arun raju3 reputationPosted Apr 17, 2010, 4:42 AM EDT
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..
ajay rajuRank #4,639 · 333 reputationPosted Apr 17, 2010, 5:23 AM EDT
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.
ajay rajuRank #4,639 · 333 reputationPosted Apr 19, 2010, 9:41 PM EDT
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.
Dipa AhujaRank #1,168 · 1.5K reputationPosted Apr 20, 2010, 3:11 AM EDT
murali k2 reputationPosted Jul 13, 2012, 4:18 AM EDT
d button wil automatically get disabled