473,386 Members | 1,908 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,386 software developers and data experts.

Response.Redirect URL Address in IE 6 SP1 from Page Refresh

Hi,

I have created a Logout ASP.NET application using Forms Authentication.

When a user logs out they get a confirmation page confirming logout and a
button to click to return to the homepage.

We have the page designed so that if the user is not authenticated then they
get redirected using Response Redirect method to the homapage.

If a user starts a web browser session to our logout page and they are not
authenticated the page redirects and the redirection web url shows in the IE
address bar.

If a user logs out and then clicks refresh on the logout page they are
correctly taken to the homepage but the URL is not displayed correctly in IE,
IE shows the logout URL.

Any ideas why this is? Is this a bug with Refresh? Any way round it?

Paul
Nov 19 '05 #1
2 2834
Hi Paul,

As far as i am Aware
When you use forms authentication the .NET Framework uses Response.Redirect
and after authenticating i guess somehow Server.Trasnfer is being used

Server.Transfer will not change the URL in the address bar to that of the
new page it keeps the existing URL. i think thats the problem

********************************
Hope this helps,
Shaun (M.C.P)

http://blogs.wwwcoder.com/shaunakp
*********************************

"Dr. Paul Caesar - CoullByte (UK) Limited" wrote:
Hi,

I have created a Logout ASP.NET application using Forms Authentication.

When a user logs out they get a confirmation page confirming logout and a
button to click to return to the homepage.

We have the page designed so that if the user is not authenticated then they
get redirected using Response Redirect method to the homapage.

If a user starts a web browser session to our logout page and they are not
authenticated the page redirects and the redirection web url shows in the IE
address bar.

If a user logs out and then clicks refresh on the logout page they are
correctly taken to the homepage but the URL is not displayed correctly in IE,
IE shows the logout URL.

Any ideas why this is? Is this a bug with Refresh? Any way round it?

Paul

Nov 19 '05 #2
Hi,

I am not using the Forms Redirect Method.

When the user logs out the cookie is deleted then a confirm page of logout
is shown.

On page load I check to see if the user is authenticated and if not I
redirect them using this.Page.Redirect("url",true). If the user Refreshes the
Page this redirection takes place but the URL address in IE does not change
but if you go to the page from a new session and you are not authenticated
the redirection takes places and the URL address in IE is displayed correctly!

Any more help?

Paul

"S h a u n" wrote:
Hi Paul,

As far as i am Aware
When you use forms authentication the .NET Framework uses Response.Redirect
and after authenticating i guess somehow Server.Trasnfer is being used

Server.Transfer will not change the URL in the address bar to that of the
new page it keeps the existing URL. i think thats the problem

********************************
Hope this helps,
Shaun (M.C.P)

http://blogs.wwwcoder.com/shaunakp
*********************************

"Dr. Paul Caesar - CoullByte (UK) Limited" wrote:
Hi,

I have created a Logout ASP.NET application using Forms Authentication.

When a user logs out they get a confirmation page confirming logout and a
button to click to return to the homepage.

We have the page designed so that if the user is not authenticated then they
get redirected using Response Redirect method to the homapage.

If a user starts a web browser session to our logout page and they are not
authenticated the page redirects and the redirection web url shows in the IE
address bar.

If a user logs out and then clicks refresh on the logout page they are
correctly taken to the homepage but the URL is not displayed correctly in IE,
IE shows the logout URL.

Any ideas why this is? Is this a bug with Refresh? Any way round it?

Paul

Nov 19 '05 #3

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

Similar topics

3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
11
by: Stephen | last post by:
I was wondering if someone can help me with an web application design problem. I have a aspx page which builds up an arraylist called addresses and outputs the values in the arraylist items to a...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
3
by: Sehboo | last post by:
On my ASP page, when I click a button, I want to do three things: 1. Check for some values. 2. Open a new window and pass some values as query string. 3. Redirect to some other page Here...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: Alan Silver | last post by:
Hello, Sorry if this is a stupid question, but I can't really see much difference between these tow methods according to the scant info in the SDK. Could anyone enlighten me? TIA -- Alan...
2
by: Charles A. Lackman | last post by:
Hello, I have an ASPX page that is storing data into a session Variable: Session("Name") = "Chuck" When the User clicks "Next" on the page, it naviages to "Details.aspx", Details.aspx has two...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
12
by: gigi | last post by:
How to send more than one value using response redirect? For example i can send one like this response.Redirect "pregled.asp?ime=" & strUserName but how to send two or more values? I tried...
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
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...
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...

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.