Jump to content

Recommended Posts

Posted

Hi.

 

I have a web app on Johnny. In my servlet a set some attributes in session, but when I make another request the attributes are lost. I have session-timeout in my web.xml set to 20, that should be minutes.

 

Can you help me? Thanks

Posted

Have you tried appending your username to the front of the .war (bfpsw_JAW) before you deploy it? I think other people have said that they've had issues with sessions if they don't append their username to the front.

Posted

I tried, but it seems the problem has not been solved. I put in session an attribute in the "doPost" method of a servlet, but the subsequent request does not see it, the parameter is not present in session...

Posted (edited)

I think I've solved. Searching on Google I found a post on StackOverflow giving a possible solution for the problem I faced; the last deploy of my web app seems to work well, and session attributes seem to be conserved. Here the link to the post:

 

https://stackoverflow.com/questions/2138245/session-is-lost-and-created-as-new-in-every-servlet-request.

 

Hope it helps

 

P.S. - The second answer to the post

Edited by softlab

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...