Last post Oct 22, 2008 01:27 PM by anas
Oct 21, 2008 07:02 PM|keeperofstars|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|MikaelKP|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|keeperofstars|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|anas|LINK
Handles the Login cotnrol logged in event ,
protected void Login1_LoggedIn(object sender, EventArgs e)