Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Public Cookies
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Public Cookies

 Post Reply Post Reply Page  123 4>
Author
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Topic: Public Cookies
    Posted: 28 October 2003 at 1:05pm

I'm using these lines:

function tView(Value)
   { 
   if (Value) 
      document.cookie = "FullTreeView=True"; 
   else
      document.cookie = "FullTreeView=False";

   window.location.reload();
   }

To set or reset a cookie within an <a> tag. The question is... how do I get this cookie to work on all the pages of the site. It seems that a cookie on one page is different from "the same" cookie on another page. Am I clear?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 1:35pm
Is this server side jscript or client side javascript?
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 1:57pm
client side... I think. It's executed whenever the user clicks on an <a> tag (on the compiled asp page)
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 3:12pm
so why have you posted it in the asp section if its a clientside script?
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 3:19pm

Sorry... I didn't know where to post it. As a matter of fact, I'm not yet sure if it's clientside or not. I'm not that into this subjects.

Can you help me anyway? Or tell me where to post this question, please?

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 4:07pm
much easier if you learn about session variables in asp.

ASP Sessions

Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 28 October 2003 at 5:03pm
Not that much. I want this configuration to be saved in the user's computer. So that next time they get into these pages they can see the pages as they had chosen.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:09pm
Go to the link provided by KCWebMonkey and look in the menu there for asp cookies.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  123 4>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.