This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Doubt Regarding the Session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Doubt Regarding the Session" Watch "Doubt Regarding the Session" New topic

Doubt Regarding the Session

ChakraPani Margani

Joined: Aug 19, 2007
Posts: 19
Hi Friends,

I have a problem in the session management.

I need to maintain the login user-id in my application...
For each database interaction I need to send the user-id..
I am maintaining the user-id and other info in a bean and I put that bean in a session variable..

But some times the session will automatically closed and gives nullPointerException when I try to call the session variable.


I am also trying to give the session max age in the web.xml

But this is also not solve my problem..

Right now i am using RAD to develop my application...
When i run my application in the local system this session problem expires.

please give my any suggestion to solve the problem..

jQuery in Action, 3rd edition
subject: Doubt Regarding the Session
jQuery in Action, 3rd edition