My question is:

I have two different *Portlets* (nothing but war file) deployed in a portal server called first and second; whenever user clicks *firstportlet* (first) I use the following code to set `session` object!:

**Code in first portlet:**

```java
String application="Welcome";
PortletRequest portletRequest = (PortletRequest) webAppAccess
                    .getHttpServletRequest()
                    .getAttribute(Constants.PORTLET_REQUEST);
portletRequest.getPortletSession(true).setAttribute("application",
                        sessionValue, 
                        PortletSession.APPLICATION_SCOPE);

log.Info("SESSION hole value:---" + portletRequest.getPortletSession(false));

```

Whenever user clicks secondportlet(second) I am using follwing code to retrieve the `session` which was set in firstportlet.

**Code in second portlet:**

```java
PortletRequest portletRequest = (PortletRequest) webAppAccess
                    .getHttpServletRequest()
                    .getAttribute(Constants.PORTLET_REQUEST);

log.Info("SESSION hole value:---"+ portletRequest.getPortletSession(false));
log.Info("SESSION VALUE in second Portlet:----"
    + portletRequest.getPortletSession(false).getAttribute("application",
                             PortletSession.APPLICATION_SCOPE));

```

**Error:**

But in second portlet I am always getting `null` value, please any solution?