| Author |
Alternative to Cookie?
|
Nalini Nagarathinam
Greenhorn
Joined: Jun 13, 2010
Posts: 16
|
|
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,
|
Nalini Nagarathinam
|
 |
mahesh shinde
Ranch Hand
Joined: Jul 24, 2009
Posts: 69
|
|
|
Use session or session id
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14491
|
|
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.
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
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
|
Java Resources at www.wbrogden.com
|
 |
vijin das
Ranch Hand
Joined: Jun 07, 2010
Posts: 129
|
|
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 ...
|
VIJINDAS
|
 |
Abimaran Kugathasan
Ranch Hand
Joined: Nov 04, 2009
Posts: 2066
|
|
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!
|
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
|
 |
mahesh shinde
Ranch Hand
Joined: Jul 24, 2009
Posts: 69
|
|
Yes we use cookie to track session.
so its better to use URLRewriting instead of cookie for session tracking
|
 |
 |
|
|
subject: Alternative to Cookie?
|
|
|