setting 2 cookies

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

    #1

    setting 2 cookies

    I need to set two cookies. One to be used for redirection and page loading,
    which i have now and works and a second one that is used to write
    information on a page.

    Both are to be set automatically when loading the page. The second will
    will set a company name like "Your company name". Then when the next page
    is loaded it will put "Your company name" on the webpage. And like I said
    before the first cookie is set for navigation purposes.

    Jose


  • Arik Segal

    #2
    Re: setting 2 cookies

    U can use 1 cookie with several 'name=value' pairs separated by '&'
    sign:

    document.cookie = 'fname=Arik&lna me=Segal'

    On Tue, 5 Apr 2005 11:47:39 -0700, "Jose Olivas" <jolivas@rbdi.n et>
    wrote:
    [color=blue]
    >I need to set two cookies. One to be used for redirection and page loading,
    >which i have now and works and a second one that is used to write
    >information on a page.
    >
    >Both are to be set automatically when loading the page. The second will
    >will set a company name like "Your company name". Then when the next page
    >is loaded it will put "Your company name" on the webpage. And like I said
    >before the first cookie is set for navigation purposes.
    >
    >Jose
    >[/color]

    Comment

    Working...