• 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

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!!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic