redirection by cookie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jose Olivas

    redirection by cookie

    I need to set a cookie on 5 pages, each being a different "home." Then
    those pages will go to 10 common pages, but when they leave the common pages
    to go back home I want them to the original home page they came from.

    I know that I can do this with check boxes and a refresh. What I want to do
    is set the cookie on the first page without it being seen, no need to
    refresh since the other pages will be be reading the value set.

    Any help would be greatly appreciated.

    Jose


  • kaeli

    #2
    Re: redirection by cookie

    In article <ci4Yd.31075$Im .4408@okepread0 1>, jolivas@rbdi.ne t enlightened us
    with...[color=blue]
    > I need to set a cookie on 5 pages, each being a different "home." Then
    > those pages will go to 10 common pages, but when they leave the common pages
    > to go back home I want them to the original home page they came from.
    >
    > I know that I can do this with check boxes and a refresh. What I want to do
    > is set the cookie on the first page without it being seen, no need to
    > refresh since the other pages will be be reading the value set.
    >
    > Any help would be greatly appreciated.
    >[/color]

    I'm not sure what it is that you don't know how to do.
    You set a cookie the same way in javascript whether it is a called from a
    function or just something floating along in the body.

    You don't need checkboxes or a refresh to set a cookie with javascript. Just
    set it in the body of the document somewhere and it's set. If you do
    redirection (either server-side or via JS location.replac e()) without sending
    header data, though, you may have issues. But normal linking / navigation
    should be fine.

    --
    --
    ~kaeli~
    Murphy's Law #2030: If at first you don't succeed, destroy
    all evidence that you tried.



    Comment

    • Jose Olivas

      #3
      Re: redirection by cookie

      Thanks I got it to work.


      "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
      news:MPG.1c9b85 29c860ddab98a35 9@nntp.lucent.c om...[color=blue]
      > In article <ci4Yd.31075$Im .4408@okepread0 1>, jolivas@rbdi.ne t enlightened
      > us
      > with...[color=green]
      >> I need to set a cookie on 5 pages, each being a different "home." Then
      >> those pages will go to 10 common pages, but when they leave the common
      >> pages
      >> to go back home I want them to the original home page they came from.
      >>
      >> I know that I can do this with check boxes and a refresh. What I want to
      >> do
      >> is set the cookie on the first page without it being seen, no need to
      >> refresh since the other pages will be be reading the value set.
      >>
      >> Any help would be greatly appreciated.
      >>[/color]
      >
      > I'm not sure what it is that you don't know how to do.
      > You set a cookie the same way in javascript whether it is a called from a
      > function or just something floating along in the body.
      >
      > You don't need checkboxes or a refresh to set a cookie with javascript.
      > Just
      > set it in the body of the document somewhere and it's set. If you do
      > redirection (either server-side or via JS location.replac e()) without
      > sending
      > header data, though, you may have issues. But normal linking / navigation
      > should be fine.
      >
      > --
      > --
      > ~kaeli~
      > Murphy's Law #2030: If at first you don't succeed, destroy
      > all evidence that you tried.
      > http://www.ipwebdesign.net/wildAtHeart
      > http://www.ipwebdesign.net/kaelisSpace
      >[/color]


      Comment

      Working...