473,401 Members | 2,125 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,401 software developers and data experts.

Cancel RedirectFromLoginPage

I have found a scenario where I would like to cancel the RedirectFromLoginPage. If a user is authenticated in my web application then they manually enter a URL to a valid web page but do not have access they are redirected back to the login page, the only problem is now when they login it redirects them back to the manually entered URL which they do not have access which then flips them back to the login page.

How can I cancel the RedirectFromLoginPage to prevent this scenario?

Thanks,

Matt
Aug 21 '06 #1
2 1451
don't call RedirectFromLogin, if they are not allowed access to the page. redirect to a home page.

-- bruce (sqlwork.com)
"Matt" <md*****@sorvive.DONT-SEND-SPAM.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
I have found a scenario where I would like to cancel the RedirectFromLoginPage. If a user is authenticated in my web application then they manually enter a URL to a valid web page but do not have access they are redirected back to the login page, the only problem is now when they login it redirects them back to the manually entered URL which they do not have access which then flips them back to the login page.

How can I cancel the RedirectFromLoginPage to prevent this scenario?

Thanks,

Matt
Aug 21 '06 #2
Bruce,

I am not calling anything, the login control is firing it automatically. This is why I want to cancel it when the ReturnURL is populated. I am not causing the loop the login control and the security system are doing it.

Thanks,

Matt
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.comwrote in message news:uN**************@TK2MSFTNGP05.phx.gbl...
don't call RedirectFromLogin, if they are not allowed access to the page. redirect to a home page.

-- bruce (sqlwork.com)
"Matt" <md*****@sorvive.DONT-SEND-SPAM.comwrote in message news:%2****************@TK2MSFTNGP06.phx.gbl...
I have found a scenario where I would like to cancel the RedirectFromLoginPage. If a user is authenticated in my web application then they manually enter a URL to a valid web page but do not have access they are redirected back to the login page, the only problem is now when they login it redirects them back to the manually entered URL which they do not have access which then flips them back to the login page.

How can I cancel the RedirectFromLoginPage to prevent this scenario?

Thanks,

Matt
Aug 21 '06 #3

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

Similar topics

0
by: Rob O'Cop | last post by:
Hi, I've got an Intranet site that's been using the usual Forms authentication. Now, I want to retrieve the Windows Login and authenticate the user automatically without her typing...
0
by: Andres Romero | last post by:
I have a login web form named login.aspx, wich validates user from a database. I configure the Web.config file to it authenticates using Form mode, and when the user try acces other page than...
2
by: Gan | last post by:
Hi, I just wonder after calling the RedirectFromLoginPage function, my current page still stick to login.aspx fiile. Any clue?? Thanks
1
by: Murphy | last post by:
I am trying to code a workaround to avoid being redirected to default.aspx if the ReturnURL parameter is blank when the RedirectFromLoginPage method is called. Depending upon the login status the...
2
by: Ben Fidge | last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the HttpContext.Current.User.Identity.Name property? A base class for each page contains the follwoing property: public...
2
by: Rob O'Cop | last post by:
Hi, I've got an Intranet site that's been using the usual Forms authentication. Now, I want to retrieve the Windows Login and authenticate the user automatically without her typing...
2
by: tshad | last post by:
I have a logon page that is may be called by the Forms Authentication setup. This would put a ReturnURL as part of the URL. I would normally then just issue a: ...
8
by: Andy Sutorius | last post by:
Hi, For some reason the login.aspx webpage redirects to itself after a successful login and not to the url in the address bar. I have stepped through this with debug and it behaves as it is...
8
by: Edward Mitchell | last post by:
I have a main project that is protected in that the user is directed to a login.aspx file. The text in the web.config file is: <authentication mode="Forms"> <forms loginUrl="Login.aspx" />...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
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,...
0
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...
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...
0
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...

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.