session - java: request.getSession().getAttribute is null -


i have set attribute in session got cxf resource through following code:

    httpsession session = request.getsession();      session.setattribute("field", "testvalue"); 

when try retrieve value in servlet:

    request.getsession().getattribute("field") 

the returned value null. i've debugged code , session in cxf resource has different id session in servlet. browser session same. can me figure out how fixed? thanks


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -