|
Home > Archive > WebSphere Portal Server > October 2006 > Common code to check session object in Portal
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Common code to check session object in Portal
|
|
| Bala Labhishetty 2006-10-19, 1:28 am |
| I want to write piece of code to put some object into session once user login to portal, by default the user navigates to kind of home page which is part of specific portlet.
In portal application, user may book mark authenticated page after login to portal. During next visit user may goes to authenticatd page thru book mark.
In this case it will redirect to webseal login page. After user authenticated it will goes to book mark page instead home page. so it may not execute piece of code which is part of home page (portlet).
Is there any common place to put the code, it will execute default home page code.
Thanks & Regards,
Bala
| |
|
| You can use PortletSessionListener interace for tracking the login and logout events. There are 2 methods declared in this interface. You just need to override the login method and inside this store data in the session object.
Arch
| |
| Bala Labhishetty 2006-10-23, 7:22 pm |
| Thanks Arch, I am able to test the concept.
|
|
|
|
|