Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RedirectFromLoginPage

Thread Tools


Posts: n/a
Hey all, I got a question and hope someone can help me here.

I have a aspx page that reads from a excel sheet logins, and checks
the user login, if its OK, it allow the user to access pages on a /
restrict folder. It almost works, but here's what happens:
I have to place the login.aspx outside the restricted folder in
order for it read the USERNAME from the user browser, otherwise it
returns blank, and I wonder why... (the webserver is IIS5 running on
WIN2000 Server, with Windows Authentication set).
Since the login.aspx is outside the restricted folder, it checks OK
and try to RedirectFromLoginPage(userid, true). But it says file not
found after a while.

Im guessing the problem is when redirecting, since the login page is
outside the restrict folder, it fails. But if I place the login page
inside the folder, I cant get the username.

Anyone knows what I should do/search ? Thanks.

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
without Forms authentication.redirectFromLoginPage()? .NET Follower ASP .Net 2 02-04-2004 05:15 AM
FormsAuthentication.RedirectFromLoginPage with Frames Eric Broers ASP .Net 1 11-27-2003 06:48 AM
Re: Setting page FormsAuthentication.RedirectFromLoginPage defaults to? Lauchlan M ASP .Net 2 08-17-2003 05:07 PM
System.Web.Security.FormsAuthentication.RedirectFromLoginPage is not working.. TaeHo Yoo ASP .Net 1 07-09-2003 07:46 AM
RedirectFromLoginPage(username, true) no working Gan ASP .Net 2 06-27-2003 06:48 AM