[an error occurred while processing the directive]
![]() |
cosign-discuss at umich.edu |
general discussion of cosign development and deployment | |
Especially when deleting the cookies when no users are logged on during a maintenance (which we do) - deleting all cookies has no effect :-) Also, if an active cookie is deleted, it is simply re-created the next time the user sends a request to the sit (just like it's created when the user first visits the site) --- if you deleted all the cookies and there was a high volume of users already authenticated who were actively accessing the site, it seems conceivable there would be a performance hit. David -----Original Message----- From: Townsend, Paul [mailto:townsend@xxxxxxxxxxxxx] Sent: Tuesday, October 25, 2005 4:06 PM To: Sweetman, David; Lewis, Amy S; cosign-discuss@xxxxxxxxx Subject: RE: Re: cosign question Are there any side effects of simply deleting all the files in cookiedb? Since we weren't sure, we wrote a script that deletes files more than a day old. While we were at it we included code to delete cosign log files older than a week. This is in a VBS file that is kicked off by the Scheduled Tasks once a day. Heres the VBS code: 'This script will delete files in the E:\IISCosign\CookieDB folder that are older than 24 hours. 'Files in the E:\IISCosign\Logs folder will be removed if they are older than 7 days On Error Resume Next Const DeleteReadOnly = True Yesterday = Now - 1 LastWeek = Now - 7 Set fso = CreateObject("Scripting.FileSystemObject") set CookieFolder = fso.GetFolder("E:\IISCosign\cookiedb") set CosignFolder = fso.GetFolder("E:\IISCosign\logs") Set CookieFiles = CookieFolder.Files For Each CookieFile in CookieFiles If CookieFile.DateLastModified < Yesterday Then fso.DeleteFile(CookieFile.Path) End If Next Set CosignFiles = CosignFolder.Files For Each CosignFile in CosignFiles If CosignFile.DateLastModified < LastWeek Then fso.DeleteFile(CosignFile.Path) End If Next -----Original Message----- From: Sweetman, David [mailto:dsweetma@xxxxxxxxxxxx] Sent: Tuesday, October 25, 2005 3:55 PM To: Lewis, Amy; cosign-discuss@xxxxxxxxx Subject: RE: Re: cosign question On way is you can use Windows Task Scheduler to schedule a batch file that runs a command like: del /q c:\program files\cosign\cookiedb\*.* -----Original Message----- From: Amy Lewis [mailto:aslewis@xxxxxxxxx] Sent: Tuesday, October 25, 2005 3:46 PM To: cosign-discuss@xxxxxxxxx Subject: Fwd: Re: cosign question Does anyone know how to do this on IIS? Amy Lewis Client Server Operations Manager Technology Services University of Michigan aslewis@xxxxxxxxx (734) 647-0271