Weird behaviour of SetAuthCookie, bug?

S

Strange Cat

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
 
M

Mohamed El Ashamwy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top