aspose file tools
The moose likes JSP and the fly likes unable to retrieve value from session in a jsp/java web app Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "unable to retrieve value from session in a jsp/java web app" Watch "unable to retrieve value from session in a jsp/java web app" New topic
Author

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

Arvind Chari
Greenhorn

Joined: Jul 26, 2011
Posts: 8
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: unable to retrieve value from session in a jsp/java web app
 
Similar Threads
sessionid() returning different values
hidden field retrieval
Session problem in NetBeans
Page HitCounter in JSP?
error when I try to retrieve data stored in session variable