Results 1 to 2 of 2

Thread: Javascript Cookies

  1. #1
    Join Date
    Aug 2005
    Posts
    1

    Javascript Cookies

    Hello everyone!

    I work in a financial organisation and our website is heavily regulated. We have a gateway page that has links to various sections within the site. Each link is 'protected' by a separate cookie. What happens is, the user clicks the link and is presented with a regulatory page that contains a link that they must click to progress to the page they require. When they click the link a cookie is written. The next time they click the original link they go straight to the requested page without seeing the regulations page. They see the regulations page again after 30 days when the cookie expires.

    The way I do this at the moment is using JavaScript. Is there way I can do the same without using JavaScript as I need to make the website fully accessible to everyone using screen readers, text browsers etc?

    Many thanks in advance!

  2. #2
    Join Date
    Mar 2004
    Location
    China
    Posts
    3,315
    Yes, you could use a server side scripting language such as php or asp to manage the cookie/session. The code would be very similar in logic to the javascript you use now. However, all the calculations would be done server side, so the scripts preformance is not affected by the clients system.

Similar Threads

  1. JavaScript cookies in IE6
    By beserker in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 12 Jul 2005, 07:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •