Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
sameer danthurthy
jsessionid management
January 8, 2009 5:45 PM
Answer

sameer danthurthy

Rank: New Member

Posts: 5

Join Date: May 16, 2007

Recent Posts

Hello:
I have been having issue with liferay 5.1 jboss/tomcat bundle and jsessionid.

The website is multilingual and using the language portlet the user can choose the right language, however using a cookie disabled browser the site get randomly displays pages in other languages. On further investigation it looks like the jsessionid is also shared among multiple users. I would think the sessionid would be unique. The links sometimes have jsessionid appended to thr URI and other times not. I enabled requestdumper in Jboss and clearly see that the server honors requestedSessionId overiding the language set in the session. Please suggest where to start.

Thanks
Sameer
Jonas Yuan
RE: jsessionid management
April 30, 2009 7:57 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

Hi Sameer,

Do you get the issue solved?

You may try this

in portal-ext.properties, set

# Set this to true to enable sessions when cookies are disabled. See LEP-4787. This behavior is configurable because enabling it can break certain setups.

session.enable.url.with.session.id=false


Hope it helps.

Thanks

Jonas Yuan
Jignesh Vachhani
RE: jsessionid management
March 26, 2010 3:23 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 755

Join Date: March 10, 2008

Recent Posts

Jonas

I already set this property but then also it is showing me the session id at first time after that when i click to any other pages then it will not come.

SO can you suggest me what could be the exact problem?
Wilson Man
RE: jsessionid management
March 26, 2010 10:36 AM
Answer

Wilson Man

LIFERAY STAFF

Rank: Liferay Master

Posts: 537

Join Date: June 21, 2006

Recent Posts

this is something that's happening in JBoss and somewhat outside of Liferay's control.
You can take a look at this possible workaround though:
http://www.liferay.com/web/david.truong/blog/-/blogs/my-new-obsession:-seo-and-liferay
Jignesh Vachhani
RE: jsessionid management
April 6, 2010 5:28 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 755

Join Date: March 10, 2008

Recent Posts

Now It is working fine for me.
Yan Naing Oo
RE: jsessionid management
September 8, 2011 6:02 PM
Answer

Yan Naing Oo

Rank: Regular Member

Posts: 170

Join Date: February 17, 2011

Recent Posts

Hi Jonas,

How could I hide/show jsessionid is it like true/false in portal-ext properties ?

session.enable.url.with.session.id=false -- hide
session.enable.url.with.session.id=true -- show

if it is correct how is the Impact in hide and show for the whole portal ?

thanks


Jonas Yuan:
Hi Sameer,

Do you get the issue solved?

You may try this

in portal-ext.properties, set

# Set this to true to enable sessions when cookies are disabled. See LEP-4787. This behavior is configurable because enabling it can break certain setups.

session.enable.url.with.session.id=false


Hope it helps.

Thanks

Jonas Yuan
Ankit A Lakum
RE: jsessionid management
August 22, 2012 3:08 AM
Answer

Ankit A Lakum

Rank: New Member

Posts: 6

Join Date: November 24, 2009

Recent Posts

It is generating different cookies for different urls that's why put false

For More details look see below

you need to look for is PortalRequest

just place into your tomcat's etc/server.xml line
<Service name="Catalina" className="com.liferay.support.tomcat.core.PortalStandardService">
------------------------------------------------------------------------------------------------------------------------------------------------

Yan Naing Oo:
Hi Jonas,

How could I hide/show jsessionid is it like true/false in portal-ext properties ?

session.enable.url.with.session.id=false -- hide
session.enable.url.with.session.id=true -- show

if it is correct how is the Impact in hide and show for the whole portal ?

thanks


Jonas Yuan:
Hi Sameer,

Do you get the issue solved?

You may try this

in portal-ext.properties, set

# Set this to true to enable sessions when cookies are disabled. See LEP-4787. This behavior is configurable because enabling it can break certain setups.

session.enable.url.with.session.id=false


Hope it helps.

Thanks

Jonas Yuan