This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes RESTFul web service and session handling? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "RESTFul web service and session handling?" Watch "RESTFul web service and session handling?" New topic
Author

RESTFul web service and session handling?

Pete Neu
Ranch Hand

Joined: Feb 18, 2005
Posts: 86
Hi,

we need to have session handling with our RESTFul web service. Sessions must be valid up to 10-13 hours.

What options are out there to do this? What is the easiest possibility? Web Service runs in JBoss.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I can think of the following two approaches:
1) Use regular HTTP sessions with cookies or URL rewriting.
This has the advantage that there is already support in the servlet API etc.
2) Use some kind of session token that the client must enclose with each request.
Since you are contemplating a RESTful web service, I guess the HTTP headers is the place to put such a token.

Interested in hearing about other approaches, if there are any!
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RESTFul web service and session handling?
 
Similar Threads
RESTful Web Services:About the book
sending java Object to REST web services.
Question about setting Request Header for Rest web service
Testing restful web service
Passing an object from one server to another