Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can we know whether Cookies are accepted or not

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As a programmer ,How can we know whether cookies are accepted or not accepted by the browser .

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the first page accessed by the user (a.jsp), set a cookie and do a client-side redirect to another page (b.jsp). If the browser rejected the cookie, it won't be there when the server processes b.jsp.

Note that you can instruct the servlet container to use URL rewriting instead for the session cookie (in case that's what you're wondering about).
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You mean to say that add a cookie and get that . If it came its fine or its not accepting cookies .

Thank you .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic