Answering my own question, sort of...
By setting the expiry out into the future, I can see the cookies on disk.
Yes, cookies. They are 2 different cookies.
Hmmm.
S
"Stephanie Stowe" <> wrote in message
news:...
> What I am doing is this... There is a page in my ASP App called
"bridge.asp"
> It sets a cookie with the unique ID for some information in a cookie comme
> ca:
>
> Response.Cookies("MyID") = lngSessionID
> Response.Cookies("MyID").path = "/"
> Response.Cookies("MyID").Domain = "stephie.com"
>
> In onBody in the ASP page, I change the window location to a URL for a
page
> on another server with domain stephie.com (same machine, different port,
for
> what that is worth). I do not use a response.redirect because I need the
> page that does the above cookie hoo haa to be what is loaded when the Back
> button is clicked.
>
> In the second page (JSP), I set another cookie to say that the JSP page
has
> been accessed.
>
> If the cookie already exists, I change the value. Else I add it thus:
>
> Cookie cookie = new Cookie ("JSPC", "Yes");
> cookie.setDomain("stephie.com");
> cookie.setPath("/");
> response.addCookie(cookie);
>
> The behavior is that the user starts using an ASP app. They decide to use
a
> service available in JSP. When they click the link, it goes to
"bridge.asp"
> Bridge.asp has a condition
>
> If Request.Cookies("JSPC") = "Yes" then
> Response.Cookies("JSPC") = "No"
> DoReturn
> Response.Redirect strLoadPage
> else
>
> WriteSessionInfo
> WriteIdentifierCookie
> end if
>
> So the first time to this page, the JSPC cookie is not set at all. So
> WriteSessionInfo is done and WriteIdentifierCookie is done. Then the page
> loads with the window.location change in body on load. The JSP page loads
> and looks lovely. The JSPC cookie is set with the value Yes as above. I
> click the back button, and the bridge.asp sees the JSPC cookie is set to
Yes
> and
> sets the JSPC cookie to No. Does DoReturn sub then redirects to LoadPage.
>
> Now. I do the sequence again. JSPC is set to No. I get properly redirected
> to the JSP page. I can see in my Websphere console that the value of JSPC
is
> Yes. I click the back button... The JSPC cookie value is No. So I get sent
> right back to the JSP page.
>
> The question is (really about cookies).. I set the value in the JSP page
of
> JSPC cookie to Yes. When I get back to the ASP page, it thinks the value
is
> No.
>
> Do I have to:
>
> - set the domain and path of the cookie each time I write its value? If
so,
> is there a proper order of operations? I tried this various ways to no
> avail.
>
> - is there something you can see in this long winded question that I am
not
> seeing?
>
> Thanks
>
> S
>
>
|