C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

after logout it should not go back in asp.net 2.0


Posted Date: 01 Nov 2008      Posted By: guddu      Member Level: Silver     Points: 1   Responses: 3



after logout it should not go back in asp.net 2.0
i m just using a session for logout. after logout. when user clock on back button it redirect to login page
i m using asp.net2.0 c#
give detail and code
thank u





Responses

Author: Gaurav Agrawal    01 Nov 2008Member Level: DiamondRating: 3 out of 53 out of 53 out of 5     Points: 3

use this code for stop back button of browser

<script type="text/javascript" language="javascript">
javascript:window.history.forward(1);
</script>


GA

Thanks & Regards,

Gaurav Agrawal
Sr.Software Engineer
gaur1982@yahoo.com
09829373514



Author: Miss Meetu Choudhary    01 Nov 2008Member Level: DiamondRating: 3 out of 53 out of 53 out of 5     Points: 3

You can make use of history.forward like this

<script type="text/javascript" language="javascript">
javascript:window.history.forward(1);
</script>

or on page load you can check wheter the session is on or not and can redirect the page accordingly


++
Thanks and Regards
Meetu Choudhary

Thanks and Regards
Miss Meetu Choudhary (Site Coordinator)
Go Green Save Green
My Profile on Google



Author: ChandraShekar Thota    02 Nov 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

use session.abandon

also u have to use javascript to disable back button

y dont you just redirect to anothe page so that he cannot go back again.

chandrashekarthota@gmail.com /92 93 95 95 39
FREE SESSIONS ON .NET AND VISUALSTUDIO



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Help Needed for FTP Upload service
Previous : Image Loading problem in Datalist
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use