|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Cookie ProblemI need desperate help with my problem. I guess the solution is related in some way with the cookies getting lost in the authentication process working with some web servers. Appreciate any help you could provide. I've created an application that does the authentication process using forms. I've succeed to install it in a lot of web servers and it works perfect. But, and here is the problem, in some of the web servers this is what happens: Starting the application the user has to follow the authentication process. If the user fails to enter the password, the server communicates him that either the password or the user name is incorrect. At this point, the process works fine. The problem starts when the user follow the authentication process correctly (user name and password are correct), after this, the system fails to continue to the next page, the user is sent back to the authentication page (like he was trying to violate the security using the URL). This problem happens when a user is trying to do the authentication process in a client machine; it doesn't happen if the user is in the server machine. I've done some research and these are the results: As the application works fine in most of the servers I've installed it, it shouldn't be an application problem. As the application gives the user an answer when either the user name or the password is incorrect, the server is responding correctly. As the application works fine if the user is in the server machine, installation or database problems are discarded. I've been tracking the cookies and this is what happens: If the user is working directly on the server machine, the system creates the cookies and everything works fine. But, if the user is working on any client machine the cookie never arrives. The problem is not on the client machines as if I connect them to another server, the cookie is created and the application works fine. The user is redirected to the authentication page because the cookie gets lost (Again: The client machines works fine connected to other servers) and he loses his credentials. Searching through the web I've found that there is a problem with the server name when it has characters like "_", but this is not my case. I've tried names like: Server/MyApp/Authentication.aspx 192.168.1.100/MyApp/Authentication.aspx OtherName/MyApp/Authenticacion.aspx But none of them works. I hope I've been clear enough with my explanation. Thanks in advance for any help you can give me. PD: The application has been developed using C# in VS .NET. you really should do network traces to see whats going on.
hint: check to see if a proxy is remapping urls before hitting the server (this can cause asp.net to use the wrong domain name for the cookie) -- bruce (sqlwork.com) Show quoteHide quote "Steven M." <smonc***@gmail.com> wrote in message news:1134681630.061984.183840@g49g2000cwa.googlegroups.com... > Greetings... > > I need desperate help with my problem. > > I guess the solution is related in some way with the cookies getting > lost in the authentication process working with some web servers. > > Appreciate any help you could provide. > > I've created an application that does the authentication process > using forms. I've succeed to install it in a lot of web servers and > it works perfect. But, and here is the problem, in some of the web > servers this is what happens: > > Starting the application the user has to follow the authentication > process. If the user fails to enter the password, the server > communicates him that either the password or the user name is > incorrect. At this point, the process works fine. The problem starts > when the user follow the authentication process correctly (user name > and password are correct), after this, the system fails to continue to > the next page, the user is sent back to the authentication page (like > he was trying to violate the security using the URL). > > This problem happens when a user is trying to do the authentication > process in a client machine; it doesn't happen if the user is in the > server machine. > > I've done some research and these are the results: > > As the application works fine in most of the servers I've installed > it, it shouldn't be an application problem. > As the application gives the user an answer when either the user name > or the password is incorrect, the server is responding correctly. > As the application works fine if the user is in the server machine, > installation or database problems are discarded. > I've been tracking the cookies and this is what happens: If the user > is working directly on the server machine, the system creates the > cookies and everything works fine. But, if the user is working on any > client machine the cookie never arrives. > The problem is not on the client machines as if I connect them to > another server, the cookie is created and the application works fine. > The user is redirected to the authentication page because the cookie > gets lost (Again: The client machines works fine connected to other > servers) and he loses his credentials. > Searching through the web I've found that there is a problem with the > server name when it has characters like "_", but this is not my > case. I've tried names like: > Server/MyApp/Authentication.aspx > 192.168.1.100/MyApp/Authentication.aspx > OtherName/MyApp/Authenticacion.aspx > But none of them works. > > I hope I've been clear enough with my explanation. > > Thanks in advance for any help you can give me. > > PD: The application has been developed using C# in VS .NET. >
Other interesting topics
Anyone tried the design templates from MSDN?
Please help me with FxCOP 1.32 and ASP.NET 2.0 Access to the path is denied - trying to write a file CheckBoxList problem. Want to add some javascript to each checkbox CSS Question Error: Cannot use a leading .. to exit above the top directory. Property Feature For Comparing DateTime Poping up a window AND redirecting the page thtat triggered the po 2005 Differences in a nutshell? How do I install ASP.NET app on IIS 6.0? |
|||||||||||||||||||||||