• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Creating Server Side Cookie

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How many types of Cookie are there ???
Is there anything like server side cookie and client side cookie If yes than how can i create server side cookie ???
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cookies are always client side. Perhaps you are confused by the existance of the javax.servlet.http.C ookie class - that is simply the class that servers use to manipulate c ookie values during a single request-response cycle. Holding values between requests is handled by the HttpSession - note that a cookie value on the client is what associates a given client with a Session.

For more than you ever wanted to know about c ookies, here is the RFC.

Bill
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that there is anything like server side or client side cookies. It is just the container creates for you when you want to use sesions or you just create one custom cookie depending on what you want to do with it.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

How many types of Cookie are there ???



Theres chocolate chips, coconut, almond shavings, what ? Oh...

Well there are no server side cookies. Cookies are usually handed over to clients over HTTP so that clients can be stateful. Everytime, the browser says to the server, "Hi server do you remember me ? I am the guy with the JSessionID=blalba!123%^&D". If you dont want to use cookies use HTTPS or URL rewriting.
 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kookie FAQ is here
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic