• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

sso(my app) 1stuser login and logout and 2nduser login it show Connected users:1st userinfo,2nduser

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're getting a NPE because JForum uses ThreadLocal, so you will have to initialize JForumExecutionContext first. Take a look at JForum.java#service().

Also, for the logout process, see UserAction.java#logout(). Simple calling invalidate() will not be enough.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i have written SSO for Single Sign On For my apllication login using Session it's working fine.

The problem is when
sso(my app) 1stuser login and logout and 2nd user login it show Connected users:1st login userinfo,2nd login userinfo

I have session expire when user click logout buttion.But it is not working

I worte following code for :

SessionContext session2 = JForumExecutionContext.getRequest).getSessionContext();
session2.invalidate();

i am getting NullPointer Exception


Any body help please.


Thank,
Gopal.G
[originally posted on jforum.net by gopal.g]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have you find any solution to this ?

I am facing same problem... Plzz help!!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic