Connecting Tech Pros Worldwide Forums | Help | Site Map

Cookies - wanting more consistency on page load

Bruce Lawrence
Guest
 
Posts: n/a
#1: Nov 14 '06
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.


VK
Guest
 
Posts: n/a
#2: Nov 14 '06

re: Cookies - wanting more consistency on page load



Bruce Lawrence wrote:
Quote:
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.

Bruce Lawrence
Guest
 
Posts: n/a
#3: Nov 16 '06

re: Cookies - wanting more consistency on page load


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 : )

Closed Thread