473,545 Members | 2,043 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form Authentication problem

I am hosting a website on my home PC. I have a dynamic IP address so I use
a domain name that automatically gets updated with my IP address by my
router. This domain name is something like rayne.mydns.org

When I try and login to my home website via this domain name I have no
problems with my form authentication. I get redirected to my default.aspx
page.

However, I have my own registered domain name (for example rayne.co.uk)
which has been setup to forward to the rayne.homedns.o rg domain name. When
I access my site via this rayne.co.uk URL my login authentication does not
appear to work. Has anyone any idea as to what might be going on?
Nov 18 '05 #1
3 1360
"Philip Rayne" <pr****@nospam. me> wrote in message
news:cc******** ***********@new s.demon.co.uk.. .
I am hosting a website on my home PC. I have a dynamic IP address so I use a domain name that automatically gets updated with my IP address by my
router. This domain name is something like rayne.mydns.org

When I try and login to my home website via this domain name I have no
problems with my form authentication. I get redirected to my default.aspx
page.

However, I have my own registered domain name (for example rayne.co.uk)
which has been setup to forward to the rayne.homedns.o rg domain name. When I access my site via this rayne.co.uk URL my login authentication does not
appear to work. Has anyone any idea as to what might be going on?


Forms Authentication uses cookies. Cookies are sent by the client browser to
the server. Each cookie is associated with a domain. The cookie will only be
sent to sites which match its domain.

I suspect that you have a login cookie from rayne.mydns.org , and are trying
to use it on rayne.co.uk. This won't work, as the domains are different.

You would have to set the cookie domain to the empty string in order for
this to work. That does mean that the cookie will be sent to every site,
however.
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #2
Hi, I'm not to sure what you mean by this.

I am using the forms authentication Form
FormsAuthentica tion.RedirectFr omLoginPage(txt UserName.Text, True) method
with the web.config specifiying my cookie name and path. Where would I
"blank" the domain name?

Thanks.
"John Saunders" <jo************ **@notcoldmail. com> wrote in message
news:O2******** ******@TK2MSFTN GP11.phx.gbl...
"Philip Rayne" <pr****@nospam. me> wrote in message
news:cc******** ***********@new s.demon.co.uk.. .
I am hosting a website on my home PC. I have a dynamic IP address so I use
a domain name that automatically gets updated with my IP address by my
router. This domain name is something like rayne.mydns.org

When I try and login to my home website via this domain name I have no
problems with my form authentication. I get redirected to my default.aspx page.

However, I have my own registered domain name (for example rayne.co.uk)
which has been setup to forward to the rayne.homedns.o rg domain name.

When
I access my site via this rayne.co.uk URL my login authentication does not appear to work. Has anyone any idea as to what might be going on?


Forms Authentication uses cookies. Cookies are sent by the client browser

to the server. Each cookie is associated with a domain. The cookie will only be sent to sites which match its domain.

I suspect that you have a login cookie from rayne.mydns.org , and are trying to use it on rayne.co.uk. This won't work, as the domains are different.

You would have to set the cookie domain to the empty string in order for
this to work. That does mean that the cookie will be sent to every site,
however.
--
John Saunders
johnwsaundersii i at hotmail

Nov 18 '05 #3
"Philip Rayne" <pr****@nospam. me> wrote in message
news:cc******** ***********@new s.demon.co.uk.. .
Hi, I'm not to sure what you mean by this.

I am using the forms authentication Form
FormsAuthentica tion.RedirectFr omLoginPage(txt UserName.Text, True) method
with the web.config specifiying my cookie name and path. Where would I
"blank" the domain name?


<forms name=".ASPXAUTH " ... domain="" path="/" />
--
John Saunders
johnwsaundersii i at hotmail
Nov 18 '05 #4

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

Similar topics

7
2963
by: luigipaioro | last post by:
Good morning to all! I'm trying to access on a web page that needs user and password authentication. I'm enabled to access there (I mean that I have an user name and a password to access via web), but I cannot access using an automatic procedure (that is what I need to make a daemon that downloads weekly an ASCII file from that site). ...
23
2880
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the same NT domain, each one has its own web server. The web server is always IIS 5.0.
10
2879
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not being passed to the page specified in the Action property of the form. This is on a Windows 2000 Pro PC. I copied the code to another server...
16
2867
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the form order to do that ? My point is for the client to be able to re-read the modified data.
1
289
by: slawek xxxxx | last post by:
Hello everyone, I have found a problem with form authentication method that I can't solve. The problem is: I want to use a form authentication in my application, so i set : <authentication mode="Forms"> ,and <forms name="LoginForm" loginUrl="SM_LoginPage.aspx" protection="All">
2
1076
by: caldera | last post by:
Hi, I have a authentication from form authentication. It is redirect to an other web page. But it isnot redirected to desire page. What is reason for this problem and how can I solve this problem. Thanks for your help.
13
1678
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files located in a subfolder of Demo, named images. I implement Role based form authentication. When I access all aps forms, it works fine and ask me...
6
1364
by: Frank Walsh | last post by:
Can anyone tell me if this is possible in asp.net, I want to use form-based authentication to authenticate my users, however a employee of the company is attempting to be logged in as administrator and as a client in two browser windows. When the FormsAuthentication.Signout is called on one of the windows, it kills both authentications for...
3
2389
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined users in Credential section like as follow : <authentication mode="Windows" > <forms loginUrl="Login.aspx"> <credentials passwordFormat="Clear">...
2
2469
by: Gnic | last post by:
Hi, I am a page that sit on a form authentication directory, but I have 1 or 2 pages that don't require form authentication, also I have a web service class in this directory as well, I am wondering how can I exclude those aspx and asmx from form authentication? thanks Gnic
0
7401
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...
0
7808
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...
1
7423
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7757
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5972
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3450
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...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
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
0
704
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...

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.