Forms authentication and redirection

P

Paul K

In a web application I'm transferring from asp to
asp.net, I have a login form which gets the user's
credentials and checks to see if they exists in a
database. If they do exist, I'm writing some data to the
session contents and then running the following code:

url = FormsAuthentication.GetRedirectUrl
(txtUID.Text,true);

if (url == "/EPES/default.aspx")
url = "private/production.aspx?MOVEWEEK=NONE";

Response.Redirect(url);

Every time the page is redirected to production.aspx,
it's redirected back to default.aspx. My loginUrl is
default.aspx. production.aspx includes another page for
creating a menu (menu.aspx).

How do I redirect the user to production.aspx without
being automatically redirected again?

Paul K
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top