• Post Reply Bookmark Topic Watch Topic
  • New Topic

Alternative to Cookie?  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know what are the other alternative ways to do the work without cookies.

Is there any best ways to implement the application without cookies?


Thanks,


 
Ranch Hand
Posts: 69
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use session or session id
 
Bartender
Posts: 19445
88
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. URL rewriting. There are several API functions in J2EE to handle URL rewriting.

However, unlike cookies, rewritten URLs are pretty fragile. If someone manually types in a URL, they probably won't type in the extra information relating to the session (and if they type as bad as I do, they'll probably get it wrong). Cookies are handled automatically, and they can be given a specific lifespan.
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hidden fields on Forms work just fine as an alternative to cookies.

Naturally you must ensure that every new request is a POST from a Form.

Bill
 
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Nalini Nagarathinam wrote:
I would like to know what are the other alternative ways to do the work without cookies.

Is there any best ways to implement the application without cookies?







session(HttpSession) will be the most secure option ...
 
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

mahesh shinde wrote:Use session or session id



session stuff is different from cookies. For session tracking purposes, we use cookies, URL rewriting and SSL connections. Don't confuse session with cookies. session are maintained in server side and the cookies are maintained in the client side!
 
mahesh shinde
Ranch Hand
Posts: 69
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes we use cookie to track session.

so its better to use URLRewriting instead of cookie for session tracking
 
I child proofed my house but they still get in. Distract them with this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!