Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Forms authentication and redirection

Thread Tools

Forms authentication and redirection

Paul K
Posts: n/a
In a web application I'm transferring from asp to, 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

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


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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best practices for using forms authentication and security in a hosted env (was: Re: Using a Forms authentication in a shared hosting environment) JEFF ASP .Net 1 11-12-2007 07:00 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
Problem with forms authentication when using redirection ASP .Net 4 06-28-2005 07:27 AM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM
Forms authentication then redirection to a secure web with NT authentication? Jéjé ASP .Net Security 1 10-20-2003 06:04 PM