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

How to change ReturnUrl

Hi all,

My app is working correctly. I have a custom membership provider interfaces with the built-in login controls and everything is working so far. When a user logs out and then re-login with out closing the window he is redirected to the last screen he/she was on. This behavior I expect. Now they (my customer) wants it so if a user re-logs in he does not get the last requested page but a prespecified page.

How do I override the automatic returnUrl?

Thanks for any Help
Mar 4 '08 #1
2 1703
Plater
7,872 Expert 4TB
What if you did not specify a returnURL at all?
Mar 4 '08 #2
Edit: Figured it out . I force a formsAuthentication.Signout then redirected the response to where I wanted them to go. The results was the login screen's ReturnUrl indicated the page I wanted them to go to. Thanks, a different thread on this site gave me part of the idea. This place is helpful.
Mar 6 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Tomk | last post by:
When I logout of my application I redirect to the login page. However the ReturnURL is placed in the querystring so if the user logs back in it goes back to the last page where the logout occured....
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: ...
1
by: Randall Parker | last post by:
I'm coding up C# CodeBehind source code for a Logon.aspx file. I have a newbie few questions: 1) If a PostBack comes in and you return from it (rather than redirect) then will the original...
0
by: cmessier | last post by:
Hello all, I'm using ASP.Net 2.0 to create a small web application that uses forms authentication. Currently, when a user logs out, a ReturnUrl is set in the QueryString. However, if at the...
4
by: Chicagoboy27 | last post by:
All I am trying to find a solution for removing the ?returnUrl if a user is not authenticated. I want to be redirect an unauthenticated user to the login.aspx less the returnUrl. Once they log...
7
by: vvkl | last post by:
I have readed a example code from MSDN about FormsAuthenticationTicket calss, but there's a line I can't understand : 'strRedirect = Request;' What's the mean in which square brackets? Thank...
0
by: mark4asp | last post by:
The login page is: http://localhost:1086/Client/Default.aspx The default page is: http://localhost:1086/Client/News/News.aspx i.e. I have the following in web.config <authentication...
3
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
Hi, I have three pages. Login page, Default.aspx and admin.aspx. There is link inDefault.aspx page which redirects to admin.aspx page. But I want the ReturnURl as "admin.aspx" page and want...
10
by: semomaniz | last post by:
Hello, I have a database interface that needs to have a login authentication set up. SO for this I have a login view inside which i have the login control and i have accomplished the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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...

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.