unable to retrieve value from session in a jsp/java web app
posted 5 years ago
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.