Hi I am using session atttibutes to know whether a user is loged in or not.Basically what i am doing is i am authenticating user with database and if user's username and password are correct, then in the sevlet i am setting a string to yes value and checking that condition where ever required in the application.But in some pages of application, i have a link which will call my main page.If user is loged in then, my main page should have user details but its not happening. my session attributes are not available in main page. Can anyone suggest me what to do. Thanks
Perhaps you are attempting to retrieve it with the wrong keys ? Why dont you try printing all the keys and values in the session attribute scope ? You can also register some listeners in case you want to be notified when a session object is added or removed or replaced. This way any change in these values will be visible to you via debug statements.