• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HttpSession is now null, but was not null at start of request; session was invalidated

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After user password is being reset user is supposed to redirected to security questions page(/PP/enduser/securityQuestions.do?clear=true') instead user is getting AccessDeniedException because session is invalidated and user is given anonymousUser authentication. I tried the solution from other similar problem http://stackoverflow.com/questions/15500519/an-authentication-object-was-not-found-in-the-securitycontext-spring-3-2-2 but the solution not working for me.

AM using jdk 7, spring-security-web-3.1.4.RELEASE, spring-security-core-3.1.4.RELEASE and Tomcat 7
Below is my Authentication success handler



security-applicationContext.xml

my web.xml


After the user is redirected to /enduser/securityQuestions.do page user is getting customaccessdenied exception and kicked back to login page(index.do)



After keep trying for couple of minutes user is redirected to the securityQuestion page and below are the logs for successful redirect from index.do to securityquestions.do

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic