Hi,
I have a ASP.Net web site, that we sell as a module to our core
software, versions of this site are running fine on many servers,
however we are having problems with our latest installtion, and it's
got me scratching my head.
The problem is with FormsAuthentica tion.RedirectFr omLoginPage, it's
running on a brand new Windows 2003 standard server. No matter what I
do I cannot log onto the web site. It's as if it's not writing cookies
or something.
When some one enters a user name and password it validates ok, telling
them if they've got it wrong, but if they enter the correct details,
and I call FormsAuthentica tion.RedirectFr omLoginPage, all it does is
return to the Logon Page rather than redirecting them back to the
calling page.
If I copy all the files from this site to a different server, it works
fine. So I know it must be a setting I've missed on the server.
Does anybody have any ideas.
Many thanks in advance
Chris 5 5395
Is the domain hard coded in the application?
Have you tried with multiple browsers?
Have you made sure the server's and client's time is properly synced?
Have you tried debugging it and seeing variables and cookies as they
are being set and then where they are upon the next page redirect
>Is the domain hard coded in the application?
No, the site need to be flexible enought to be run from any domain Have you tried with multiple browsers?
Only multiple instances of IE, as this is our target audience.
Have you made sure the server's and client's time is properly synced?
It doesn't work if I use the browser on the server, so this rules this
out.
Have you tried debugging it and seeing variables and cookies as they are being set and then where they are upon the next page redirect?
I'm not sure how I debug the cookie when using FormsRedirect, but the
exact same site on a different server will work fine
On 8 Mar 2005 09:23:34 -0800, "re****@communi ty.nospam"
<ma**********@g mail.com> wrote:
Is the domain hard coded in the application? Have you tried with multiple browsers? Have you made sure the server's and client's time is properly synced? Have you tried debugging it and seeing variables and cookies as they are being set and then where they are upon the next page redirect
That is why it "sounds" like
Cookie problem
Ultimately server side cookie problems usually come down to 2 things
#1 - somebody accidentally hard coded a domain into the code
#2 - You are working off of a subdomain and are not setting the cookie
up to handle this
#3 - Somebodys time is off sync
or either a very obsecure/strange configuration problem that I have
never rune across.
If you have debugging setup on your server then this is extremely easy.
You merely fire up vs.net with your project loaded. Put a breakpoint in
your forms authentication procedure and put a breakpoint on the
location it is redirected to.
Then you Step through it. As you step through it you add related
variables to your Watchwindow, such as username/password, The Cookies
collection. and you monitor and analyze the values as the page is
authenticated and as the page is redirected. This will usually clue you
in as to what the problem is and then you can begin a much more direct
line of attack
I had the same problem. When trying to login to a forms-authentication
protected site from IE, IE wouldn't redirect properly eventhough the user was
properly authenticated. However, accessing the site through Firefox worked
just fine. After some investigation it turned out that the date on the server
was a month behind. Once I corrected the date setting IE functioned properly.
I can only speculate that the cookie was seen as expired by IE becuase of the
date difference.
It's still seems rather odd that Firefox accepted it just fine and dandy
though.
Eric
"Meadow" wrote: Hello, i've got the same problem, but only when i try to access my site from my domain, when i use localhost it works fine, but when i use my domain www.mysitename.com IE doesn't redirect, but Mozilla does... i can't figure out what this depends on, please help
From http://www.developmentnow.com/g/8_20...ge-problem.htm
Posted via DevelopmentNow. com Groups http://www.developmentnow.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ben Fidge |
last post by:
Is FormsAuthentication.RedirectFromLoginPage the only way to populate the
HttpContext.Current.User.Identity.Name property?
A base class for each page contains the follwoing property:
public int CustomerID {
get {
try {
if (HttpContext.Current.User.Identity.Name != "")
return Convert.ToInt32(HttpContext.Current.User.Identity.Name);
|
by: Phil Certain |
last post by:
Hi
I'm building a site that has publicly available pages and password
protected pages. Publicly available pages reside in:
/public
and password protected pages reside in:
/private
|
by: tshad |
last post by:
I have a logon page that is may be called by the Forms Authentication setup.
This would put a ReturnURL as part of the URL. I would normally then just
issue a:
FormsAuthentication.RedirectFromLoginPage(logon.txt,true)
But I also am giving them an option to register which would go to a new
page. From this page, when they submit, I want to go the original page they
were heading for (ReturnURL) when the went to the logon page.
|
by: Grant Merwitz |
last post by:
Hi, i am using forms authentication in an ASP.NET project
I am setting the Forms authentication cookie by using:
FormsAuthentication.RedirectFromLoginPage(UserName.Text, false);
Now when i review my trace on my page, there are two cookies created that
look identical.
When i FormsAuthentication.SignOut() they both dissappear.
Any ideas as to why two cookies are created?
|
by: Dean R. Henderson |
last post by:
I setup FormsAuthentication on a couple websites where it has been working
as expected for a long time. I used this code to setup the same type of
authentication on a new website I am working on and the Cookie Name is not
getting setup the same way.
In my Web.config file, I use the following basic settings on both the old
and new websites:
<authentication mode="Forms">
<forms name="SiteAuth" loginUrl="Logon.aspx" protection="All"
| |
by: Jeremy Chapman |
last post by:
I have built a web app. While testing I have found that if I browse to a
page in the app, then get redirected to the login page and enter my
credentials. The FormsAuthentication.RedirectFromLoginPage call is
redirecting to the default.aspx page rather than the original page the user
was at.
Here is the details of my application:
Web.config:
<authentication mode="Forms">
|
by: Åženol Akbulak |
last post by:
Hello;
I use in my web application FormsAuthentication. Also I use Session state
(InProc).
When a user logged in, I can read Session parameters. (For example
Session). Problem is that, when user close the browser window then
open a new browser, FormsAuthentication reads from cookie and user logs in.
Althought user logged in, session parameter is null.
|
by: Imran Aziz |
last post by:
Hello All,
I cannot seem to get createPersistentCookie option of
FormsAuthentication.RedirectFromLoginPage work. Even if I set it to true the
cookie is setup to expire after 30 min ( default settings )
Can you please suggest as to what can be done to sort this one out.
My code is as under
web.config
|
by: rn5a |
last post by:
A web.config file has the following code:
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="NETConnectCookie" loginUrl="Login.aspx">
<credentials passwordFormat="SHA1"/>
</forms>
</authentication>
</system.web>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| |