This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JForum and the fly likes Problem getting email/password from session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Problem getting email/password from session" Watch "Problem getting email/password from session" New topic

Problem getting email/password from session

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Greetings - I am trying to integrate jforum into my own web site, using the sso login feature.

I set the following session variables in my login routine:
String password ="somepassword";
session.setAttribute("sso.password.attribute", password);
session.setAttribute("", "");

After my login routine, I have a link to the jforum page.
Inside ControllerUtils.checkSSO(), the following statement return 'NULL' email and password values:
String email = (String) session.getAttribute(SystemGlobals.getValue(ConfigKeys.SSO_EMAIL_ATTRIBUTE));
String password = (String) session.getAttribute(SystemGlobals.getValue(ConfigKeys.SSO_PASSWORD_ATTRIBUTE));


I was wondering if jforum sets these to null sometime after I login using my routine, and checkSSO() is called?

Just wondering if anyone has run into that?

(Note: I can get other login objects I set at the same time )

Thanks for the help,
[originally posted on by curtc]
I agree. Here's the link:
subject: Problem getting email/password from session
It's not a secret anymore!