473,756 Members | 3,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

avoid a page going back to site after logging out

Hi,
I am working on a web site which authenticates an user using forms. And once they logout, I observed that, for any reason if they click on "BACK" button of the browser, the user is being taken back to the site instead taking them to "login" page. I used formsAuthentica tion signout method and also used session's abandon method in signout event. Still I don't know why I am facing that problem. Please tell me what else I need to do in order to avoid that and present them with loging page like it happens with any email web site.

Thanks,

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #1
2 3238
Most likely you're seeing the contents of the browser cache, and not a new
page generated by the server. Try hitting the back button and then F5 for
refresh; you should be redirected to login.

This isn't a security violation per-se; however it raises an interesting
question regarding the sanctity of confidential information. When you log
out, it would be nice to know that a new user approach the machine couldn't
browse the cache so easily and view your previously-seen documents.

A few possibilities;

+ Do some work to prevent the browser from caching the page. Historically,
this has been somewhat unreliable, but there are some solutions that seem to
behave consistently.

+ Immediately after logout, try writing some js out to close the browser.

+ Immediately after logout, try writing some js to clear the history.

You'll no doubt have different issues with different web browsers, and even
more complex issue dealing with proxy server caches, but it's somewhere to
start.

/// M
"nvv via DotNetMonster.c om" <fo***@DotNetMo nster.com> wrote in message
news:24******** *************** *******@DotNetM onster.com...
Hi,
I am working on a web site which authenticates an user using forms. And once they logout, I observed that, for any reason if they click on "BACK"
button of the browser, the user is being taken back to the site instead
taking them to "login" page. I used formsAuthentica tion signout method and
also used session's abandon method in signout event. Still I don't know why
I am facing that problem. Please tell me what else I need to do in order to
avoid that and present them with loging page like it happens with any email
web site.
Thanks,

--
Message posted via http://www.dotnetmonster.com

Nov 19 '05 #2
Mr. Wells,

I am working on intranet. So, no problem of browser type or version. Is there any way that we can avoid in the way it happens in yahoo mail. I mean, whatever the page that the user requests, he must be redirected to login(that includes after logging out and hitting browser's back button). Like how it happens even with this site(dotnetmons ter).
Please help. If boss wants like that, we have to do that.

Thanks,
nvv

--
Message posted via http://www.dotnetmonster.com
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1840
by: anon | last post by:
Post Forwarding question...... For this control below, <asp:Button runat="server" PostTargetUrl="page2.aspx" /> The Attribute: PostTargetUrl="page2.aspx" Is this PostTargetUrl Attribute going to be available in the <a> and Html Controls as well as opposed to just the <asp:Button> control?
4
6622
by: Penny | last post by:
Hi all, How can I retrieve the current page url(and parameters/arguments) using ASP code? The current page is an asp search results page so the url includes the page name and the criterion(sorry I don't know what they're called) I had the 'post' method tag on the end. I need to get it and store it so I have an easy way of getting back to this
5
3129
by: Veeresh | last post by:
I have written an ASP.Net application and has question regarding page navigation. Aftyer logging in to the web site by clicking on the back button user can go back to the login ASPX page. How to avoid this in ASP.Net ? Thanks Veer
3
1298
by: Joel D. Kraft | last post by:
I've been logging a lot of fatal errors on my site lately, and I have not been able to figure out why. First, my site has error handling pages defined globally as shown below. They are not overridden at any point in the configuration. <customErrors mode="RemoteOnly" defaultRedirect="/site/error/default.aspx"> <error statusCode="404" redirect="/site/error/404.aspx" /> </customErrors>
2
1429
by: Terry | last post by:
Hello everyone, I created a logon page using C# ASPX, I have the user logon and if logon information is correct I do a Response.Redirect(url); On the second page it displays data and I have a logoff button which does another Response.Redirect(main url); Here is the issue, I am able to browse back to that page and the data is still populated and visible. How can I clear the cache for that page? I have tried: Response.Expires = 0;...
7
2452
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms authentication. I would like to configure it so that anyone not logged in, trying to access the protected part will not be redirected to the login page, but
6
4696
by: BizWorld | last post by:
Hi, I have a scenario where i need to configure only Login.aspx page to use SSL. All other application will run on HTTP protocol. If someone can guide me how to accomplish this. One of my idea is to keep login.aspx page in a seperate Virtual director and apply SSL only on that directory but i dont know if it will have an impact on session (may be it will create two sessions due to two different virtual directories). If some one can...
6
3418
by: RobGMiller | last post by:
Using ASP.NET 2.0 Need to simply process incoming postback information without sending back a reponse. Client sends HTML from application other than a browser to a page on a web site. Web Server ASP generates a response page and send it back which opens the browser on the client. How to avoid sending back the response page.
7
4682
by: =?Utf-8?B?Um9iIFRob21zb24=?= | last post by:
Hi is there a way in asp.net 1.1 to in code behind query the page size that is generated, I realise IIS does it as it has that data in the logs, I would like to capture this data so that I can create a log for performance on our site that is all held in the database TIA
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9273
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9841
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7244
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5141
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.