Questions tagged [httpsession]

An Java interface used by the servlet container to create a session between an HTTP client and an HTTP server.

An Java interface used by the servlet container to create a session between an HTTP client and an HTTP server. The session object has an expiration time which allows the container to invalidate the session after that specified time of the user inactivity. It is active while the user making requests, across more than one connection or page and remains active after the user exit application and stay active until it's expired. The server persists the session object for the user between restarts. While it's valid the session interface allows the application to bind objects to it and access then from different requests of the same user. A session usually corresponds to one user, who may visit a site many times. The server can maintain a session in many ways such as using cookies or rewriting URLs.

Details from the API docs:

Tutorials:

655 questions
0
votes
1 answer

can HttpSession object configured in xml bean java spring

can i configure HttpSession in spring bean xml configuration file ? i have to create HttpSession fectory so i can use this all session objects to every where. is there any way to put object under HttpSession with xml configuration file ??
0
votes
1 answer

Httpsessionlistener: two sessions are created and none are destroyed

Edit: I reformulated the question I'm using Spring and GWTEventService (which is basicly the same as Comet). When I make a simpler HttpSessionListener, I see sessionCreated() is called twice and sessionDestroyed() is not called in between. Why is…
Vjeetje
  • 5,314
  • 5
  • 35
  • 57
0
votes
1 answer

How session id is stored in Jersey REST service

I know browsers store session ids using cookies and check these ids on each request. My question is the following: when you make a REST call from your mobile device (or any other device), how does the client-server communication identify sessions…
Kerem
  • 43
  • 5
0
votes
1 answer

conversation gets destroyed when invalidating a session

I have a SessionManager which implements HttpSessionListener. In the SessionManager, I have a static hashtable of all active sessions. I am trying to create a function for forcing the invalidation of sessions. It looks something like : HttpSession…
inxis
  • 51
  • 1
  • 4
0
votes
1 answer

Can't access custom HttpSession attribute from JSP page

I have a custom attribute defined in a HttpSession and I set the attribute from within a library class as follows: public class changeBeanAttribute { public changeBeanAttribute() { } public void changeAttribute (HttpServletRequest request) { …
0
votes
2 answers

Several SecurityContexts in one HttpSession

I have been working on application that is using spring security. I am quite new to spring security and ended up with problem similar to this and this. But it is a bit different. I do manual authentication this way:…
0
votes
1 answer

Weird session behavior..!! changing user object properties at runtime

While testing concurrent access in our web application we are having some difficulty tracing session behavior. Say we have three different users, A, B, and C. We are logging in to the application with three different browsers with these three users…
JOHND
  • 2,597
  • 6
  • 27
  • 35
0
votes
1 answer

HttpSession store in db for performance reason

Suppose that we have a performance-oriented applications works in cluster. It contains a lot of users.It known that the session is replicated poorly so application can be badly scalable.Of course the best way is create application as stateless.…
przodownikPracy
  • 547
  • 2
  • 5
  • 12
0
votes
1 answer

Putting a JavaBean into a HttpSession in JSP

I was trying to do a "simple" application about a survey. Where you have some options (checkboxes) and then the results (votes) are shown in other page. I have this class where I can keep the results all time (I want to update this class, using…
CristianC
  • 15
  • 1
  • 6
0
votes
1 answer

HttpSession is null in RESTful web service?

In my web services class using(jersey) @Context I injected HttpServletRequest, HttpServletResponse, ServletContext objects for authentication i called a ValidateUser servlet. @Path("/server") public class WebServer { @Context private…
P Srinivas Goud
  • 886
  • 1
  • 12
  • 30
0
votes
1 answer

GWTP HttpSessions with Cookies disabled

I have a GWT app that is loaded within an iFrame. The app uses GWTP for client server communication. In the ActionHandler implementation a HttpSession Provider is injected. @Inject private final Provider sessionProvider; If cookies…
schub
  • 912
  • 1
  • 8
  • 26
0
votes
1 answer

Why is my httpsession expiring?

I'm pretty new to JSF and I ran into an interesting problem. I have a web application, with a session timeout specified and even if I make actions, the session expires. As far as I know, every new request restarts the timeout counter, well it is not…
omniflash
  • 191
  • 1
  • 14
0
votes
0 answers

A 'do nothing' session manager for Tomcat 6+

I would like to totally disable session creation and management in my web app to eradicate the memory (and other resource) usage currently associated with Tomcat's standard session manager. This includes disabling sesison cookies and/or url…
user1806029
  • 101
  • 1
  • 5
0
votes
1 answer

HttpSession timeout

i have a jsf application in which i have three frames,one for the header,one for side navigation and the other is the mainframe.I have built this in the spring framework. I have a problem that when the HttpSession object gets timed out the…
arnabmitra
  • 903
  • 9
  • 19
0
votes
1 answer

How to reload the frame and session value is not getting removed

i am using the loginpage which does not come in frame but once i logged in all the pages are in framset and when i try to log out (the logout link is there in the frame) only that specific frame is reloaded and the login page comes to that frame.…
Java Questions
  • 7,813
  • 41
  • 118
  • 176