473,789 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem: redirect to login page only remotely

Hi, i'm having a very weird problem.
I have an application Asp .Net (Framework 1.1) that uses form
authentication.
To deny access to non-authenticated users i use
<authorizatio n>
<deny users="?" />
</authorization>
in the web.config file.

It works ok when the app is deployed on any machine using IIS v5.1, but
when using IIS 6.0 a really weird thing happens.
If you access the application locally everything works fine (Example:
http://localhost/login.aspx)
but if you try to access remotely (http://NameOfServer/login.aspx) and
i put valid login and password, it gets to the page it is supossed to
but immediately returns to the Login screen.
(http://NameOfServer/login.aspx?ReturnUrl=%2fMenu.aspx).

That only happens with IIS 6.0, remotely, and using Microsoft Internet
Explorer. With Mozilla Firefox it doesn't happens.

Does somebody have any idea why?

Jul 7 '06 #1
2 1312
What is the your IIS app running as? windows integrated? basic auth?

Do you have identity impersonate=tru e in your web.config?

Make sure your local security IIS settings are the same as the remote
IIS security settings for that web app. That sounds like the problem

Jul 7 '06 #2
I am getting exactly the same problem, does anybody have a solution or
walk around?

es********@gmai l.com wrote:
Hi, i'm having a very weird problem.
I have an application Asp .Net (Framework 1.1) that uses form
authentication.
To deny access to non-authenticated users i use
<authorizatio n>
<deny users="?" />
</authorization>
in the web.config file.

It works ok when the app is deployed on any machine using IIS v5.1, but
when using IIS 6.0 a really weird thing happens.
If you access the application locally everything works fine (Example:
http://localhost/login.aspx)
but if you try to access remotely (http://NameOfServer/login.aspx) and
i put valid login and password, it gets to the page it is supossed to
but immediately returns to the Login screen.
(http://NameOfServer/login.aspx?ReturnUrl=%2fMenu.aspx).

That only happens with IIS 6.0, remotely, and using Microsoft Internet
Explorer. With Mozilla Firefox it doesn't happens.

Does somebody have any idea why?
Jul 30 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1789
by: Mike | last post by:
I can not figure out what is going on here. I hope somebody can please help!!! I've got an intranet ASP3 application running on a Win2k server. This application requires a login, so the user must first go to the login.asp page before accessing any other .asp page. I have set up a redirection method so that if a user pastes a URL to an internal .asp page, I store the URL in a session variable, then I direct them to the login page. After...
0
1100
by: farooq | last post by:
Hi guys, I’m facing some problem can u solve it. Problem is: I’m giving user Id and password in (Login_sess.asp) and submit it to page (sess_test.asp). I am setting session variable (session(“Sin”)=”Yes”) just before redirecting to the same page, but in first time I do not received the value of session variable when I redirect it, when I execute this process second time or redirect it only with the page name...
1
1905
by: farooqazeem | last post by:
Hi guys, I’m facing some problem can u solve it. Problem is: I’m giving user Id and password in (Login_sess.asp) and submit it to page (sess_test.asp). I am setting session variable (session(“Sin”)=”Yes”) just before redirecting to the same page, but in first time I do not received the value of session variable when I redirect it, when I execute this process second time or redirect it only with the page name...
3
3131
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built in "log in" and "user authentication, restrict access to page" features. But I find the after login I constantly get redirected from the restricted pages.
11
3604
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get any requested page to automatically go to the Login.aspx page, AND, the ReturnURL querystring is correct in the address bar, but no matter what, I can't get it, once the user is authenticated, to redirect to the new page. It ALWAYS refreshes the...
1
4759
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I have a page in a folder (under anonymous authentication in IIS6) that has a link on it that...
1
1151
by: sri | last post by:
I have login page "Login.aspx" and when user logs in the session.item("userid")=userid and navigates to next page inbox "Inbox.aspx" and when i logoff from this page i make the session.item("userid")="", Redirect to Login page. the problem is when i copy the inbox url i.e "inbox.aspx" and when i logoff and paste the url in the browser then again it is showing the "inbox.aspx".. so how can i restrict when the url is pasted in the browser and when...
3
2055
by: Joe Fawcett | last post by:
Dear All We have an application where users login, their name/password details are stored in a table, and now we want to add a third party bulletin board that lives in its own virtual directory. Both applications are running on the same IIS. How do we authenticate users so that they don't have to sign in again without passing their name and password in the querystring or request header? The login details are the same for both...
7
1971
by: Samuel Shulman | last post by:
Is there a method that will indicate the person who logged successfully is Logged and therefore allowed to browse freely other then using the 'Web.Security.FormsAuthentication.RedirectFromLoginPage' method thanks, Samuel
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9020
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5417
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4092
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3700
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.