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

4x4 Matrix in Python -

javascript - Building and updating array objects -

python - PyInstaller UAC not working in onefile mode -