Microsoft Knowledge Base Email Alertz

(827033) - Explains the changes that were made to the AuthManager object in Commerce Server Service Pack 2 (SP2).

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 827033 - Last Review: November 18, 2004 - Revision: 1.2

Changes in the behavior of the AuthManager object in Commerce Server 2002 SP2

SUMMARY

The behavior of the AuthManager object changed in Microsoft Commerce Server 2002 Service Pack 2 (SP2). In earlier versions of Commerce Server 2002, the AuthManager object would set a cookie to be expired or would delete an existing cookie when the AuthManager.IsAuthenticated method returns a false value.

MORE INFORMATION

This behavior is a problem when you use URL-based tickets instead of cookies. The client will receive a cookie warning although the site code never intended to set a cookie. In Commerce Server 2002 SP2, changes were made to the AuthManager object to keep the state of whether the client supports persistent and session cookies.

This change also affects the AuthManager.SetUserID method. In the Commerce Server 2002 documentation, the AuthManager.SetUserID method will set a new ticket. The ticket will either be a ProfileTicket string or an AuthTicket string depending on the parameter that is passed. This ticket causes a cookie to be sent to the client even if the client did not have an existing cookie. Commerce Server 2002 SP2 changes the SetUserID method so that a new ticket will be created in memory but it will not be applied unless either the SetProfileTicket method, the SetAuthTicket method, or the GetUrl method is called. The Commerce Server 2002 OrderSitelet code calls the SetUserID method and expects to see a ProfileTicket cookie. The SetUserID method will not find the ProfileTicket cookie if the browser does not have that cookie. To use the AuthManager object correctly, call the SetProfileTicket method after you call the SetUserID method. The OrderSitelet code does not call these methods in this sequence.

REFERENCES

For additional information about this change in behavior , click the following article number to view the article in the Microsoft Knowledge Base:
813125  (http://kbalertz.com/Feedback.aspx?kbNumber=813125/ ) FIX: IsAuthenticated tries to delete a cookie while in URL mode

APPLIES TO
  • Microsoft Commerce Server 2002 Service Pack 2
Keywords: 
kbinfo KB827033
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate