• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

webpshere session time out problem

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !
i have a session object in which we put the user object, which contains the
user information of the user who has logged in. The first time i use the
search criterions, the session object is not null and the user object which
i retrieve from the session object is also neither null. but the second
time onwards the session object is not null, but the user object which i
retrieve from the session object is null. sometimes the session object is
also null even though the session timeout time is not elapsed. the session
timeout time is 30 mins. but when i use it the second time itself, when i
check if the session object is null, it returns me null.
plz help me out with this. it's quite urgent.
Thanks & Regards
satheesh
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sateesh,
It's hard to say without seeing your code. Somethings I usally check are these.
1. Am I using the same name for the User object in each place I am pulling it out? Remember even with attribute names, caps rules apply. User and user are two different attributes.
2. Am I adding the user object to the session and getting then putting it back each time. While Java is reference lang, I find it's always better to implictly put and get attribute objects on the session.
3. Are you using frames, or popups that create new client instances? The server maintains Session connection by means of cookies related to the instance of the client browser. In some cases new popups create new broswer instances on the client computer, so when a servlet is ran from that new window, there is no session connected.

Hope these help, short of this, we're going to need some code and more concrete examples or concerns.
 
Satheesh Kumar G
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
We are using URL rewriting for session management. We are using struts 1.1 in our application development. Also, we are using frames in our application. i ensured that all the URLs are encoded in all the jsp files and as well as all frame src are encoded, but still session is lost after 5 minutes. I have sent session timeout as 30 minutes in WebSphere console.
Pls. help.
Thanks and Regards,
Satheesh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic