my dog learned polymorphism*
The moose likes JSP and the fly likes Alternative to Cookie? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Alternative to Cookie?" Watch "Alternative to Cookie?" New topic
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: 15956
    
  19

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: 12761
    
    5
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative to Cookie?
 
Similar Threads
Session tracking issues
Podar Mock Test
session management using cookies
what mechanism does javaranch employ?
How can we call a method without class Object?