By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,625 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,625 IT Pros & Developers. It's quick & easy.

setting 2 cookies

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


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

document.cookie = 'fname=Arik&lname=Segal'

On Tue, 5 Apr 2005 11:47:39 -0700, "Jose Olivas" <jo*****@rbdi.net>
wrote:
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


Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.