• Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating Server Side Cookie  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • 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 ???
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • 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.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kookie FAQ is here
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!