• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Check Cookies enabled via JavaScript

 
Carpe Diem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing web pages for the browser netscape 4.78.
Now I try to check in my page whether the netscape browser showing the pages has c ookies enabled.
In netscape version 5 and 6 it works in JavaScript via navigator.c ookieEnabled. Is there an equivalent function for netscape version 4.78?

Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the easiest way of testiung crossbrowser wise is:



Eric
 
Carpe Diem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric,

it works that way.
Just one remark. To compare by equality that test is stored in the cookie failed because additionaly the jsessionid was also stored in the cookie. Bur checking for test as substring of the cookie contents was successfully.

Thanks again and bye
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cpould just test to see if the length of the cookie is greater then 0 too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic