ASP & Cookies & Logs

by "Charlton, Mark" <Mark.Charlton(at)sgcna.com>

 Date:  Fri, 01 Dec 2000 14:15:50 -0500
 To:  "'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
HI

I have two sites on an intranet.  On the same server I have test copies of
the sites which I develop on.  Then I sync the sites.  I have a cookie set
in login to the site so that I can identify the user during that sesison.

/Site1/	Cookie: Site1LiveID  & Site1LivePwd
/Site1Test/	Cookie: Site1TestID  & Site1TestPwd
/Site2/	Cookie: Site2LiveID  & Site2LivePwd
/Site2Test/	Cookie: Site2TestID  & Site2TestPwd

IIS logs the site accesses with several entries for the cookie.  It stores
both the live and test cookies against the entries of either site.  I
initially used cookie keys to store info, and it reacted the same.

2000-12-01 00:11:29 xxx.xxx.xxx.xxx GET /crystartest/images/botleft.gif 304
crystartestID=charle;+crystartestPwd=secret;+crystartestPwd=secret;+crystart
estID=charle;+ASPSESSIONIDQQQGGGCK=GJILCCBCAOPADKICDPMLOMAI

2000-10-11 18:43:37 xxx.xxx.xxx.xxx  GET /crystar/images/home.gif 304
CrystarLogin=PGPWDYX=steve&XYUNGP=hengtrf;+CrystarLivePwd=steve;+CrystarLive
ID=hengtrf;+ASPSESSIONIDGQQQQHLO=BHOLLDGAIKEJCNODANFGDEMO

My question is, apart from the obvious how can I get the Mgt to get rid of
IIS, is why does IIS cross log the cookies, I thought that the cookie would
only be sent to the site level/directory that set it, not just to the server
that set it.  If it is at server level, i can see why it will store both
cookies with different names, but when the names are the same, why does it
store it twice?

I want to be able to use the same cookie for both so I don't have to change
files when I upload, but it confuses the log analyser if the cookie is
duplicated.  If it is at server level, I should be able to use the same
cookie for both sites, but how do I stop it repeating?

Any comments will be greatly appreciated

TIA for any help
Mark

=============================================
Mark Charlton
Mailto:Mark.Charlton(at)sgcna.com
Phone: 508-795-2546
Fax: 508-795-5976
PGPKey: ldap://certserver.pgp.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.