Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > cookies

Reply
Thread Tools

cookies

 
 
JS
Guest
Posts: n/a
 
      11-15-2005
Hi,
I have problem using cookies in Firefox.
I have two pages. On first page I am setting a cookie, first by clearing
it out like this
document.cookie = "test=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT";
document.cookie = "test; expires=Thu, 01-Jan-1970 00:00:01 GMT";

then setting cookie like this
document.cookie = "test=" + document.val1.list[0].value + ";expires=Wen,
01-Mar-2006 00:00:01 GMT;domain=www.somewhere.com";

then I submit the form on first page to another server on another
domain. This server stores values from the form and then loads second
page from server that has both pages.

The problem is that when I try reading "test" cookie on second page, in
Firefox, I get nothing. In Internet Explorer I get value for "test" cookie.

What is going on? Is this a security issue?
 
Reply With Quote
 
 
 
 
Dennis Willson
Guest
Posts: n/a
 
      11-15-2005
Double check your setting in Firefox. It has a setting for cookies that restricts cookie access to "originating site only".

JS wrote:
> Hi,
> I have problem using cookies in Firefox.
> I have two pages. On first page I am setting a cookie, first by clearing
> it out like this
> document.cookie = "test=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT";
> document.cookie = "test; expires=Thu, 01-Jan-1970 00:00:01 GMT";
>
> then setting cookie like this
> document.cookie = "test=" + document.val1.list[0].value + ";expires=Wen,
> 01-Mar-2006 00:00:01 GMT;domain=www.somewhere.com";
>
> then I submit the form on first page to another server on another
> domain. This server stores values from the form and then loads second
> page from server that has both pages.
>
> The problem is that when I try reading "test" cookie on second page, in
> Firefox, I get nothing. In Internet Explorer I get value for "test" cookie.
>
> What is going on? Is this a security issue?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Give Request.Cookies and Response.Cookies is there any reason to use another method to use cookies? _Who ASP .Net 7 09-18-2008 07:49 PM
What's the proper way of reading cookies? Request.Cookies("mycook") doesnt work user ASP .Net 3 03-31-2007 01:53 PM
Response.Cookies vs Request.Cookies Alex Nitulescu ASP .Net 1 02-03-2005 09:43 AM
Persistent Cookies vs. session cookies Andy Fish Java 3 11-06-2003 10:44 AM
Good Cookies bad Cookies? AK Computer Support 23 10-26-2003 05:20 AM



Advertisments