Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why so many cookies?  RSS feed

 
Arvind Mahendra
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many cookies does javaranch set for each user? It seems its like around 6 almost. Why so many? what are they for?
Im speaking from the point of someone who is a student of servlets and JSP.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The saloon software is a hybrid of ancient perl scripts (a commercial product purchased long ago), new perl modifications by us, and several Java servlets by us (Ulf really) that have been added on for new or improved functions. Only one of those cookies is used by the Java servlets; the rest are used by the ancient perl scripts. I really don't know what most of them do; thus far there hasn't been much reason to care. Generally we try not to mess with the ancient perl scripts unless there's some concrete benefit to doing so, since it's apt to break in various unexpected ways. So I've pretty much left those cookies alone, aside from adding one for Ulf's servlets. (Adding one was much easier than studying how an existing cookie was being used and how it would react if we modified it.) For a student of servlets and JSP, I would recommend ignoring the cookies set by our software entirely. They're part of a much older legacy system.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yummmmm. I love cookies.Let them be there.
 
Arvind Mahendra
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the?? I didn't know the ranch had a cookie cutter lying around.
 
Arvind Mahendra
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jim Yingst:
The saloon software is a hybrid of ancient perl scripts (a commercial product purchased long ago), new perl modifications by us, and several Java servlets by us (Ulf really) that have been added on for new or improved functions. Only one of those cookies is used by the Java servlets; the rest are used by the ancient perl scripts. I really don't know what most of them do; thus far there hasn't been much reason to care. Generally we try not to mess with the ancient perl scripts unless there's some concrete benefit to doing so, since it's apt to break in various unexpected ways. So I've pretty much left those cookies alone, aside from adding one for Ulf's servlets. (Adding one was much easier than studying how an existing cookie was being used and how it would react if we modified it.) For a student of servlets and JSP, I would recommend ignoring the cookies set by our software entirely. They're part of a much older legacy system.


thanks Jim for the clarification. One last question (I promise) if this is a Perl based application how are you being able to run it on Tomcat? Is that natively supported?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if this is a Perl based application how are you being able to run it on Tomcat? Is that natively supported?


Where did you get the impression that it runs on Tomcat? The Saloon runs on Apache, while the other (Java-enabled) subdomains use Orion or Tomcat. You can see this in the HTTP "Server" header.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!