By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,729 Members | 1,356 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,729 IT Pros & Developers. It's quick & easy.

Cookies - wanting more consistency on page load

P: n/a
I have a .js file that I got from dynamic drive. It's the slashdot
menu.

There is a cookie that it uses to remember the menu status (opened or
closed categories) so when you come back, it loads the menu the way it
was when you left the page.

Here's my problem:
I created a dynamic web template and it includes the slashdot menu
system on the left side. This way, no matter which page people view on
our Intranet, the menu is there. However, each new page I create based
on this template is creating a new cookie for that new page.

So what happens is people leave the main page and goto 5 or 6 others
and each page may have a different menu setting. With 5 categories on
my menu this gets confusing.

What I would like to do is make this more consistent. Is it possible
to reference one cookie for the menu status on the entire site no
matter which page page you look at, the menu stays the same?

Thanks and sorry if I confused anyone.

Nov 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
VK

Bruce Lawrence wrote:
I have a .js file that I got from dynamic drive. It's the slashdot
menu.

There is a cookie that it uses to remember the menu status (opened or
closed categories) so when you come back, it loads the menu the way it
was when you left the page.

Here's my problem:
I created a dynamic web template and it includes the slashdot menu
system on the left side. This way, no matter which page people view on
our Intranet, the menu is there. However, each new page I create based
on this template is creating a new cookie for that new page.

So what happens is people leave the main page and goto 5 or 6 others
and each page may have a different menu setting. With 5 categories on
my menu this gets confusing.

What I would like to do is make this more consistent. Is it possible
to reference one cookie for the menu status on the entire site no
matter which page page you look at, the menu stays the same?
IMHO it's not a cookie problem but a session problem. No matter how
many users are viewing your pages, for each of them there is the page
she's looking at right now, the page she looked at before etc. So you
need to associate each cookie with a page (not the entire site) with a
pointer to what menu to open for this given page.

Nov 14 '06 #2

P: n/a
I'm sort of new to this but I think what you've explained is already
what is happening.

Its the same menu on each page. Each page that has that menu on it,
creates a cookie for that specific page.

For example, the root of the site has a cookie to remember the menu
structure for the main page. The Human Resources page also has the
same menu (created from .dwt) and there is a seperate cookie created
for the HR page.

If she changes the menu on the main page, and goto the HR page, the
menu changes to what the HR page menu was set to the last time she went
ot the HR page.

Know what I mean?

I don't want that to happen. What I want to happen is no matter what
page you're looking at with the menu on it, I want that menu structure
to remain the same.

Hope I got what you said correctly. Sorry for hurting your brain : )

Nov 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.