Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 22, 2008 01:27 PM by anas
Oct 21, 2008 07:02 PM|LINK
I have a simple login control on the Login.aspx page in my site. On the master page I have a LoginStatus control. When the users pick login it takes them to my login page but includes the returnurl parameters. When the user logs in I have the DestinationPageUrl
set to send them to the page I want them to see. Instead the user is sent back the whatever page they were on, via the returnurl parameters. Is there a way to always force the login control to follow the DestinationPageURL setting verus the returnURL parameter
Oct 21, 2008 07:22 PM|LINK
Add this in web.config-file:
loginURL is the file path of where you have your Login.aspx file
slidingExpiration resets the timeout every time a page loads - change the value to false and the user will be logged out after e.g. 15 min.
Compare with your Login.module:
Your application should redirect you correct now..
Oct 22, 2008 01:10 PM|LINK
See that is the weird thing the DestinationPageUrl is not being followed as it should, instead the returnURL Parameters are overwritting.
Trying to figure out how to stop the returnURL Parameters from overwritting.
Oct 22, 2008 01:27 PM|LINK
Handles the Login cotnrol logged in event ,
protected void Login1_LoggedIn(object sender, EventArgs e)