473,385 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Weird behaviour of SetAuthCookie, bug?

Hi everyone!

I have a weird problem with FormsAuthentication.

I have an app that works just fine with FormsAuthentication.

The user requests the homepage, he is redirected to login page, then enters
valid username and password that are checked versus a db table, if the info
is ok i execute SetAuthCookie(xxx, False) then i open a new window which
displays the home page, all is working fine...

The problem occurs on a machine named PIPPO_PC ONLY if I login in WinXP
using user PIPPO, so the situation is:

Computer Name: PIPPO_XP
WinXP User Name: PIPPO

After logging in Windows with user name PIPPO, if I try to login on my app
after opening the new window with the home page, the LOGIN page of my app is
display instead of the home page, even though the login procedure on my APP
goes ok... now this is weird...

Looks like that ASP.NET cannot set the cookie if the computer name and user
name are similar...

Does any one have a similar problem???

Thanx in advance

ASC
Nov 18 '05 #1
1 1530
Please check the machine that have this problem to see if it accepts cookies
from your FormsAuthentication applications.
Check the Privacy tab in the Internet Options Dialog and see if cookies from
your appliaction are blocked?

You could override cookie handling for the web site containing your
application. If you need to do so, please apply the following:

In the internet options dialog, open the Privacy tab and click on the Edit
button in the Web Sites section. Write the address of your site and choose
allow to allow the site to use cookies.

Hope this solves you problem.
Regards
Mohamed El Ashmawy
MEA Developer Support Center
ITWorx on behalf of Microsoft EMEA GTSC
"Strange Cat" <st*****@cat.com> wrote in message
news:xV*********************@news3.tin.it...
Hi everyone!

I have a weird problem with FormsAuthentication.

I have an app that works just fine with FormsAuthentication.

The user requests the homepage, he is redirected to login page, then enters valid username and password that are checked versus a db table, if the info is ok i execute SetAuthCookie(xxx, False) then i open a new window which
displays the home page, all is working fine...

The problem occurs on a machine named PIPPO_PC ONLY if I login in WinXP
using user PIPPO, so the situation is:

Computer Name: PIPPO_XP
WinXP User Name: PIPPO

After logging in Windows with user name PIPPO, if I try to login on my app
after opening the new window with the home page, the LOGIN page of my app is display instead of the home page, even though the login procedure on my APP goes ok... now this is weird...

Looks like that ASP.NET cannot set the cookie if the computer name and user name are similar...

Does any one have a similar problem???

Thanx in advance

ASC

Nov 18 '05 #2

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

Similar topics

7
by: Jon Combe | last post by:
I have created the following test SQL code to illustrate a real problem I have with some SQL code. CREATE TABLE JCTable ( CustomerName varchar(50) ) ALTER TABLE JCTable ADD CustomerNo int...
10
by: Chris Mantoulidis | last post by:
I see some really weird output from this program (compiled with GCC 3.3.2 under Linux). #include <iostream> using namespace std; int main() { char *s; s = "test1"; cout << "s = " << s << "...
0
by: pigwin32 | last post by:
I have an asp application that uses a javascript server side include to instantiate a component for generating our menu html. The component is pooled and worked perfectly on Windows 2000. On...
3
by: Benjamin Z. Gregorian | last post by:
Hi there I have a problem with a database I wrote. On my access 2002 it is running without probs but on the comp of my collegue A2003 there is this weird behaviour. The form is a continuous...
1
by: Pankaj | last post by:
Hi All, I use a Hashtable in my program to keep unique items...at one instance I need to repopulate this hashtable through a loop. when starting repopulation hashtable.count() returns ZERO...
8
by: Daniel Yelland | last post by:
Hi, I have developed a number of code libraries in Win32 DLLs and have written a number of test suite executables that implicitly link to these libraries in order to test them. In one of my test...
1
by: dotCore | last post by:
Hi, I have VS2003.NET, XP Pro and SQL 2000. The .NET framework is 1.1 The problem I am having with the source code is that I cannot authenticate any user. The sproc returns the user name from...
1
by: Tyson Brown | last post by:
All We recently started writing a couple encrypted values to the user's cookie using FormsAuthentication.Encrypt. Such as: Dim tmpTicket1 As New FormsAuthenticationTicket(1, "TEST", Date.Now,...
2
by: Cirene | last post by:
FormsAuthentication.SetAuthCookie works fine in IE7, but not in IE6. Any idea why? Any alternative to FormsAuthentication.SetAuthCookie? Here's my code: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.