• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie Detection

 
Sam Furtado
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic