• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Cookie Detection

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys !!!
I wanted to create a Cookie holding user authentication info and place it on the client side and furthur pick it up the next time the user tries to access the site. In this case how should it be detected whether the user has Cookies enabled / disabled in which case the user could be furthur prompted to enable cookies in his browser settings. Also, do all browser including netscape support cookies.
Pls suggest.
Thanks
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The way you find out if cookies are disabled is by sending one out and seeing if it comes back.
Unless you're on an intranet and have clout with management, DON'T expect you can force users to turn on cookies. In the wider world, some institutions even force users to turn OFF cookies!
Cookies are OK for "preference"-type info where nothing really gets hurt if the cookie isn't accepted, but for maintaining a session, use the URL-rewriting methods and store the info on the server side with a session. That will ensure that the session is tracked, either by cookies, or of that's not possible by appending session info onto the URL that the user returns.
 
reply
    Bookmark Topic Watch Topic
  • New Topic