473,394 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

LoginStatus control

Hi

I am using a LoginStatus control to log users out of the web
application. I have a question and an issue:

Question:
Does this clear all session level variables for the user who logs out.

Issue:
The logoutaction is to take the user back to the login page. The hitch
is that when I press the navigate back it gives me the page that was
rendered before the page where this control sits. In other word if
login page is A then we go to page B and then to C from where we log
out. We end up on page A as a result of the logoutaction. But if you
click on "Back" (I am using internet explorer) you end up on page B.

How can i remedy this? Looks like page B is catched and rendered from
there rather than the server.

Thanks in advance.

Newish

Sep 26 '06 #1
1 2104
You are looking for the FormsAuthentication.RedirectToLoginPage() which
will redirect someone that has just been logged out.

Here is an example of msdn of using SignOut() and
RedirectToLoginPage():

http://msdn2.microsoft.com/en-us/lib...n.signout.aspx

Newish wrote:
Hi

I am using a LoginStatus control to log users out of the web
application. I have a question and an issue:

Question:
Does this clear all session level variables for the user who logs out.

Issue:
The logoutaction is to take the user back to the login page. The hitch
is that when I press the navigate back it gives me the page that was
rendered before the page where this control sits. In other word if
login page is A then we go to page B and then to C from where we log
out. We end up on page A as a result of the logoutaction. But if you
click on "Back" (I am using internet explorer) you end up on page B.

How can i remedy this? Looks like page B is catched and rendered from
there rather than the server.

Thanks in advance.

Newish
Sep 26 '06 #2

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

Similar topics

2
by: clintonG | last post by:
The LoginStatus control does not have a click event. If anybody is at all familiar with this control and can explain how to create a click event I'm ready to learn something new. <%= Clinton...
0
by: AR | last post by:
I am interested in the best approach for placing a LoginStatus control in a Master page. The reason I'm doing this is so I can always display the "Login" or "logout" link at the top of every page...
0
by: clintonG | last post by:
Has anybody observed the use of the LoginStatus control? Selecting it emits two clicks where as other selections emit one click. I've tested this control in a clean page to isolate the behavior....
0
by: markmm | last post by:
Hi folks, Im trying to use the LoginStatus Control in a Master page, the login part works fine. When logged in the logout link appears and when clicked it seems to trigger the next button on my...
1
by: frolda | last post by:
Hi, I moved my login.aspx page from root to a subdirectory and made -hopefully- all necessary changes for all Login controls. All the controls work just fine, except one. To my regret, the...
0
by: pbaugh | last post by:
Hi Folks, I'm using the ASP.NET 2.0 LoginStatus control and am having a frustrating time! I created a basic testbed web site added the control to the default page, added a login.aspx page with a...
3
by: Dan Sikorsky | last post by:
How do you get a reference to the LoginStatus control contained in the LoginView control that resides on web.master? I need to determine if the LoginStatus will show a LogOut link(for a logged...
2
by: Jeff | last post by:
hey asp.net 2.0 I've placed a LoginStatus control on a master page (so I don't need to have it on every webpage) in my project. When I click on this control to logout, I get this error: A...
1
by: Jimbo | last post by:
Hi, I am using a LoginStatus Control in a c# based .aspx page. The page includes some dynamically created controls. These are set up automatically, depending on what is in the Request object. ...
0
by: helveticus | last post by:
I am struggling to allow a LoginStatus control reflect its changed state when embedded in a cached page. All pages in my app share a common login user control that basically consists of a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.