Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2008, 07:06 AM
Authorized User
 
Join Date: Apr 2007
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default LogOut in ASP.NET

I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........



Please Suggest Some way(s)

 
Old March 3rd, 2008, 09:18 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Set the Information Page to not Cache. This should solve your problem.

http://www.google.com/search?hl=en&r...net+-+no+cache

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========
 
Old March 4th, 2008, 03:31 AM
Authorized User
 
Join Date: Apr 2007
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thnx u for ur post But still there are two problems.

  1.) I've a folder named <b>Admin</b> in this folder i've around ten web forms which can only be accessed by the administrator the first web form(after the successful login id and password) there are some more links on this web form e.g <b>Top(one of the link)</b> as i click on this <b>Top</b> link another web form opens and now if i click on the <b>Log Out</b> button then it opens the first web form <b>Top</b> if i use <b>Back Button</b>

 plz suggest what should i do......

 
Old March 4th, 2008, 09:25 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I don't see 2 problems in your post.

Well I assume that all of the pages in your Admin folder check to make sure that the person requesting a page is an authenticated user

You can set IIS to not cache an entire directory by adding an HTTP Header:
http://www.developerfusion.co.uk/show/228/

This should solve the problem of all the pages in your admin directory.

hth.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
.: Wrox Technical Editor / Author :.
Wrox Books 24 x 7
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP Logout Script webXtreme Access ASP 0 November 7th, 2006 02:40 PM
Asp.net Logout problems hemal_301080 ASP.NET 1.0 and 1.1 Professional 1 August 6th, 2006 12:16 PM
Disply Logout Time in asp dayarprasad MySQL 1 June 22nd, 2006 08:43 AM
logout TIME and logout DATE crmpicco Classic ASP Basics 0 January 19th, 2005 07:57 AM
Logout Problem ASP chaitanya_puri Classic ASP Professional 1 December 2nd, 2004 08:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.