• 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

unable to retrieve value from session in a jsp/java web app

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to authenticate a user using OpenID Providers like Gmail/Hotmail/Yahoo. In this process, a form is shown which when submitted, redirects the user to the 3rd party site for actual authentication. (Like Gmail etc).

Now, just before the redirect, there is code in java to store in session the custom object 'manager'.

This code is given below--



After user has signed in at the openid provider, he is redirected to a jsp page within the same web app. The specific page he is redirected to is "loggedin.jsp".

In "loggedin.jsp" I am trying to retrieve the custom object 'manager' with the following code-




However when I do a simple check for value of Manager, I am getting output that manager is storing a NULL value.

What have I done wrong here? Why am I not getting the session variable? The open id auth is happening perfectly, only I am unable to retrieve the session variable.
 
reply
    Bookmark Topic Watch Topic
  • New Topic