473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Cookies - wanting more consistency on page load

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
2 1198
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Pat Allan | last post by:
I've spent half a day on this with no success, so I'm hoping someone can point out what I'm doing wrong. I have an ASP.NET Server-side component that I've created, and as part of its Render...
1
by: Andrew Parsons | last post by:
Hi all, I had a weird issue with trying to use a cookie in a ASCX housed on my web forms and I was wondering if I am missing something. I wanted to use the authenticated cookie for the user...
8
by: CDARS | last post by:
Hi all, I have a confusing question on ASP.NET cookies usage: 1> Response.Cookies("test").value = Now 2> Response.Write(Request.Cookies("test").value) 3> 4> Response.write("<hr>") 5>...
1
by: ltt19 | last post by:
Hi Folks, I'm just beggining with asp.net, and I'm doing a webpage to learn it. In the main page, there is a text by default written in Portuguese, that the user can change it it English by...
9
by: SHarris | last post by:
Hello, In our new intranet ASP.NET project, two requirements are that the browser accept cookies AND JavaScript. We are requiring the use of Internet Explorer 6+. 1. Using C# in an ASP.NET...
4
by: lalitha1024 | last post by:
Hi, In my Asp.net project when i am login to my site, i'll set th cookies by using below commands. Dim IdCookie As New HttpCookie("empid" ds.Tables(0).Rows(0).Item(0)) Dim FnameCookie As New...
12
by: Patxi | last post by:
This is the first time I try to use cookies, and despite of reading some tutotials, I'm have real trouble to make it work correctly. My cookie reading code is in Master Page. When I click on a...
7
by: Kevin Raleigh | last post by:
can't figure why my page won't redirect. When I call 10_6.asp it should call 10_5.asp heres the code... Thank You Kevin 10_6.asp <%@ Language=VBscript %> <% Option Explicit %>
2
by: John Grandy | last post by:
Is anyone finding that cookies added to the Response.Cookies collection within pages which contain an UpdatePanel do not exist in the Request.Cookies collection when the page is posted back ? ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.