Hello, friends,
I am using Forms Authentication in our asp.net app. However, I found that
sometimes, the ReturnURL was not in QueryString. For example, I could
redirect from login page without problem if I connected web server from our
local network. But, I could not redirect if I connected from internet, say
from our client's machine. In IE address bar, NO ReturnURL item in
QueryString. As a result, it stayed in login page.
So, my question is: How to reliably redirect from login page? Any reference
papers, sample source code?
Thanks a lot. 1 1540
Andrew,
Good defensive programming practice would dictate that you check to see if
the ReturnURL is null or empty, and if so, perform your own redirect to
perhaps the main page of the site in that case.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Andrew" wrote: Hello, friends,
I am using Forms Authentication in our asp.net app. However, I found that sometimes, the ReturnURL was not in QueryString. For example, I could redirect from login page without problem if I connected web server from our local network. But, I could not redirect if I connected from internet, say from our client's machine. In IE address bar, NO ReturnURL item in QueryString. As a result, it stayed in login page.
So, my question is: How to reliably redirect from login page? Any reference papers, sample source code?
Thanks a lot. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Simon |
last post by:
Hi,
I have a Login.php page that logs the user in and out.
I has two forms within the page, (depending on what we are trying to do),
either one to log in or out.
The form calls itself using a...
|
by: Rich |
last post by:
Hello,
I need users to access a data entry asp page via a login
page. If they bookmark the data entry asp I want to
redirect them to the login page (using IIS). Here is what
I had in mind:
...
|
by: Sospeter |
last post by:
Hi Ken,
I have done that but still experiencing same problem. Tried the
following i.e. turning smartnavigation = false and using
server.transfer as below but nothing works.
Please help.
...
|
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...
|
by: William Sullivan |
last post by:
Have a frameset HTML page (parent) with child .aspx pages. When each of the
child pages loads, it checks to see if the user is authenticated, and if not,
redirects to the login page:
...
|
by: savvy |
last post by:
I able to redirect the user to the index.aspx page after every
successful login, but I dont want certain pages outside the folder to
have a access to general public. So if they click that...
|
by: DGS |
last post by:
Hi guys,
Not a developer, but an admin so please pardon my ignorance.
I have an issue that I was hoping to get help with. What I need is for the
front page of my site to capture the URL that...
|
by: daonho |
last post by:
Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)
Dim strPath As String = HttpContext.Current.Request.Path()
Dim cookie As...
|
by: jasonheath.net |
last post by:
I apologize in advance for the length of this post. I wanted to get as
much detail as possible in here.
We have 1 web app that contains the functionality to do some single
sign-on logic. The...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
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
|
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...
|
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...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
| |