
ccho
User
Jul 11, 2002, 2:08 PM
Post #1 of 2
(2054 views)
Shortcut
|
|
cookie oddities in search engine
|
Can't Post
|
|
I'm guessing that Article Manager uses some temporary cookie when a search is submitted, because I am able to read a cookie value, "administrator", which happens to be my username for Article Manager. In Javascript, I have a function to read the values of a specified cookie (I store 2 cookies for this website, USERNAME and SESSION_ID). function readCookie(i) { if (document.cookie) { var myCookie = unescape(document.cookie); var spCookie = myCookie.split("; "); var values = spCookie.split("="); return values[1]; } else { return; } } Whenever I complete a search, it gives me "administrator" rather than the USERNAME value that is in the cookie. All other pages work fine however. Other than not including this information, is there any way to work around this? Is there a cookie being set? Chris Cho Welchintegrated.com, Inc. Just a little addendum here, I was able to read all sorts of other parameters that were supposed to be sent to the search when reading document.cookie. I guess it might just be best to leave reading my cookies out of the search results page.
(This post was edited by ccho on Jul 11, 2002, 2:16 PM)
|