• 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

what is a cookie in java ?

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please explain me with an example i am searching on google but i cant able to get the right answer.
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

Refer this Thread.

Jatan
 
siva chaitanya
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply but cookie and session both are used to store information apart cookie is stored at client side whereas session is stored at server side but my question is what information we store in cookie and what information we store in session?
 
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Typically the server-side session is used to store the state of user interactions on a website, for example shopping cart data. The server-side session is identified by a unique id (JSESSIONID), which is typically stored in a client-side session cookie. Unless the browser doesn't support cookies, in which case it ends up the URL. There are many other uses for client-side cookies though, but session tracking is one of the most common.
 
Ranch Hand
Posts: 136
Netbeans IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For your better understanding, Say if you are logging into a mail account , Once you provide the username and password the data will reach the mail server as a response it sends an information like identification of your IP, date time so on all these will be stored in the cookie with the Unique id given to you. this (cookie file) can be viewed in your system too.

on other part session is like say after you logged in you might see your username across different pages like inbox, sent items, trash so on here your username will maintained by the session until you sign out This is called session

Hope you understood now.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic