• 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

Cookies!!!

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i am trying to use cookies in a JSP to track requests associated with a user. The browser stores the cookies in the client machine, normally in a Cookies Folder in Document and Setting in C:\. is there any way that i can specify a particular place to store such cookies?
Another question is about cookies' definition that A cookie is a piece of text that a web server can store on a user's hard driver.I am having difficulty understanding how a web server can store a cookie on a user's hard driver? I read that a client sends the cookie information sent by a server and stored in the client machine. now how does the client browser store that cookie information sent by the server and how does it access again and send it to the server? could you please explain me this mechanism?
thanks.
[ October 20, 2003: Message edited by: Thulung Rai ]
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you as the webpage cannot determine where the cookie is stored because that would be bad security
what happens with cookies is your webpage sends the cookie back along with the webpage to the users browser. depending on which browser the user is using and what their preferences the browser may accept or decline the cookie. the browser will store the cookie wherever it wants. If it is a cookie just for one session it wont need to store it on the harddrive because it can keep it in memory but if it is for say 30 days some browsers store it as small text files on the users PC. when the user requests another page from the same site the browser does send along any cookies for that site.
hope that explains stuff better
 
reply
    Bookmark Topic Watch Topic
  • New Topic