Forums

Home » Liferay Portal » English » 2. Using Liferay » General »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
chakri gangaraj
session
January 23, 2008 12:02 PM
Answer

chakri gangaraj

Rank: Junior Member

Posts: 28

Join Date: November 13, 2007

Recent Posts

mike1988 wang:
I'm using liferay portal 4.2.1 with jboss+tomcat. i have successful deployed portlet along with servlet. when i have logged into my portal page and was trying to invoke my servlet page it tells me the user's session is null which stop my program from running. But when i logged in with a user id and password jboss must have created a session object for me. Does anyone knows what's going on?
thank you


Hi Mike,

I also faced same problem in my application.

I made private-session-attributes false, to make liferay session attributes available to my portlets. Its working fine.

But because of this, I am not getting session attributes in my servlet.

In one of my portlet I am opening window popup. For that I am using a servlet.
In that servlet I want session attributes which I already set in my portlets.

But I am not getting session attributes.

I followed ur sugestion given in LEP-2297 .

Now I am using Liferay 4.3.3.1 and Jboss.

In liferay kernel I am using PortalDelegateServlet, PortalDelegatorServlet for this purpose.
But it is giving 405 error.

Really I stucked here, will u please help
Michael Saechang
moved thread
January 23, 2008 11:58 AM
Answer

Michael Saechang

LIFERAY STAFF

Rank: Liferay Master

Posts: 573

Join Date: November 19, 2007

Recent Posts

chakri,

please don't post in the legacy archive. if you see something in there and would like to refer to it please quote it like above and repost in the appropriate category, this way more people will see it and you may find answers to the questions you have. thanks. emoticon

-mike
chakri gangaraj
RE: moved thread
January 24, 2008 5:39 AM
Answer

chakri gangaraj

Rank: Junior Member

Posts: 28

Join Date: November 13, 2007

Recent Posts

Hi Mike,

Really I am struggleing for this proble.

because of private-session-attribute false , my custom portlet session become different with my servlets session.

Is any way to share same portlet session for my servlets also, because custom portlets and also my servlets are in
same web application.

Waiting for liferay people help.
Sanya Presich
RE: sharing session attributes
July 29, 2009 3:30 AM
Answer

Sanya Presich

Rank: Junior Member

Posts: 95

Join Date: March 5, 2009

Recent Posts

I have the same problem with my GWT portlet.

I can't get any attributes from PORTAL global session like USER_ID or COMPANY even if I use

<private-session-attribute>
false
</private-session-attribute>



or trying to set shared attributes of session and request in portal-ext.properties

or trying to delegate through com.liferay.portal.kernel.servlet.PortalDelegatorServlet..

Any thoughts?