By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

Forms authentcation question

P: n/a
Hi there,

I have a question.

I've implemented forms authentication in my application.
now, the problem is:
if the user leave his workstation while he's working and comes back
after the session has expired, the system will ask him to relog as soon
as he postback the page. Aafter the user insert login info he will be
redirect to the last page he was working on before session expiration. I
want to avoid this and transfer the control to the default page after
login. How can I achieve this???

Thanks in advance,
Stefano Mostarda MCP
Rome Italy
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
http://msdn.microsoft.com/library/de...cturltopic.asp

You could take a look at the code in the Login_Click method. The very last
line redirects to the string returned by the GetRedirectUrl method - you
could just pass in a string to your default page instead.

Response.Redirect("/default.aspx"); //whatever your default happens to be

"Stefano Mostarda" <st**************@fastwebnet.it> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi there,

I have a question.

I've implemented forms authentication in my application.
now, the problem is:
if the user leave his workstation while he's working and comes back
after the session has expired, the system will ask him to relog as soon
as he postback the page. Aafter the user insert login info he will be
redirect to the last page he was working on before session expiration. I
want to avoid this and transfer the control to the default page after
login. How can I achieve this???

Thanks in advance,
Stefano Mostarda MCP
Rome Italy

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.