Microsoft KB Archive/325944

= All Links to Resources Are Invalidated During One Edit Session =

Article ID: 325944

Article Last Modified on 9/4/2003

-

APPLIES TO


 * Microsoft Content Management Server 2001 Service Pack 1

-



This article was previously published under Q325944



SYMPTOMS
When you edit Content Management Server (CMS) 2001 pages with the Web Browser Client (WBC), if you are in Edit mode for a particular period of time, you may find that all links to resources are no longer valid.



CAUSE
CMS 2001 Service Pack 1 (SP1) contains code that automatically renews the authentication token at the half-life of the cookie. For example, if your CMS cookie is set to expire after four hours (240 minutes), the automatic authentication renewal occurs at the beginning of the second hour (240 minutes divided by two).

Because the encoding of the resources is partially based on the authentication token, the encoding for all of the resources changes when the token is renewed. Therefore, the links to all of the resources also change.

Note that only resources in CMS are encoded in this manner, so no other CMS objects have this problem.



WORKAROUND
To work around this problem, use one of the following options:  Use the Server Configuration Application (SCA) to increase the cookie lifetime. When you do this, editors of the site can stay in Edit mode without having their resources changed for a longer time.  If you cannot use the first option, you can reverse the change that SP1 implements. The file that you must modify is located at \\Folder where CMS is installed\Server\Iis_nr\System\Access\Authenticate.inc. You may have to take this file out of read-only mode. Comment out the following lines (lines 120-129): If Request.Cookies( &quot;AUTH_TOKEN&quot; ) <> &quot;&quot; Then Dim SecMgr, strNewToken, strOldToken strOldToken = Request.Cookies( &quot;AUTH_TOKEN&quot; ) Set SecMgr = AutoSession.Session.GetSecurityManager strNewToken = SecMgr.RenewCookieIfOld( Request.ServerVariables(&quot;REMOTE_ADDR&quot;), strOldToken ) If (StrComp( strNewToken,strOldToken,0 ) <> 0) Then Response.Cookies( &quot;AUTH_TOKEN&quot; ) = strNewToken Response.Cookies( &quot;AUTH_TOKEN&quot; ).Path = &quot;/&quot; End If End If Remember to change the file back to read-only after you are finished. 

Keywords: kbbug kbqfe kbpending KB325944

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.