[thelist] any JS cookie experts out there?

Tom Dell'Aringa pixelmech at yahoo.com
Mon Dec 16 21:21:01 CST 2002


--- Roger Ly <rogerly at bareviking.com> wrote:
> >Now, I have a link on one of my pages that sends the user back
> into
> >the store, which would look something like this:
>
> >http://www.domain.com/Page.bok?template=Some%20Gifts
>
> >And mysteriously, my cookie is GONE, kaput.
>
> The page where you set the cookie is on the same domain as your
> StoreSense installation, right?

Yes

> What happens when you set the cookie on your custom PHP pages, go
> to
> StoreSense, and go back to your custom pages?  Are the cookies
> still
> visible from your custom pages?

It appears that, YES the cookie is available.

> Perhaps you are setting cookies specific to the
> directory/subdirectory
> of your custom PHP pages, and that's why they aren't available to
> StoreSense (since you are browsing StoreSense through the top level
> of
> your domain)?

Well, I set my cookie simpy by using

document.cookie = "data=value"

with no other parameters. Do I need to explicitly state the domain?
How would I do that...

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the thelist mailing list