File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes sso(my app) 1stuser login and logout and 2nduser login it show Connected users:1st userinfo,2nduser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "sso(my app) 1stuser login and logout and 2nduser login it show Connected users:1st userinfo,2nduser" Watch "sso(my app) 1stuser login and logout and 2nduser login it show Connected users:1st userinfo,2nduser" New topic
Author

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

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
vaibhav hadole
Greenhorn

Joined: Mar 10, 2013
Posts: 4
have you find any solution to this ?

I am facing same problem... Plzz help!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sso(my app) 1stuser login and logout and 2nduser login it show Connected users:1st userinfo,2nduser