Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Liferay session timeout change Subhash S Chandran 24 de Junho de 2009 00:35
RE: Liferay session timeout change Aarti Jain 24 de Junho de 2009 06:26
Extends not working Ray Vin 1 de Julho de 2009 07:23
RE: Extends not working Aarti Jain 1 de Julho de 2009 11:27
RE: Extends not working Ray Vin 1 de Julho de 2009 15:00
RE: Extends not working Victor Zorin 1 de Julho de 2009 15:49
RE: Extends not working Ray Vin 2 de Julho de 2009 00:00
RE: Extends not working Victor Zorin 2 de Julho de 2009 00:34
RE: Extends not working Jonas Yuan 3 de Setembro de 2009 14:55
RE: Extends not working Jonas Yuan 14 de Outubro de 2009 06:44
RE: Extends not working Matus Ferko 3 de Dezembro de 2009 01:41
RE: Extends not working Pravin Bansal 12 de Março de 2010 05:15
RE: Extends not working Matus Ferko 19 de Abril de 2010 03:26
RE: Extends not working Pravin Bansal 25 de Maio de 2010 04:27
RE: Extends not working sandhya shendre 23 de Janeiro de 2011 22:26
RE: Extends not working Fateh Alchhabi 24 de Janeiro de 2011 04:14
RE: Extends not working Eswaran R 7 de Janeiro de 2015 04:34
RE: Extends not working Eswaran R 7 de Janeiro de 2015 04:35
RE: Extends not working amir keshavarz 24 de Agosto de 2015 04:31
RE: Extends not working Vijay Chandra 18 de Abril de 2013 02:26
RE: Extends not working Tor Iver Wilhelmsen 14 de Fevereiro de 2011 01:14
RE: Extends not working Koen Vermeulen 19 de Março de 2013 05:22
RE: Extends not working Ripal thakkar 11 de Novembro de 2013 05:31
RE: Extends not working Ripal thakkar 11 de Novembro de 2013 06:08
RE: Extends not working Eswaran R 7 de Janeiro de 2015 04:48
RE: Extends not working Kyrre Myrbostad 7 de Agosto de 2009 00:55
RE: Extends not working Eswaran R 7 de Janeiro de 2015 04:48
RE: Extends not working Eswaran R 7 de Janeiro de 2015 04:47
RE: Liferay session timeout change Chris King 11 de Setembro de 2009 12:06
RE: Liferay session timeout change Eswaran R 7 de Janeiro de 2015 04:46
Subhash S Chandran
Liferay session timeout change
24 de Junho de 2009 00:35
Resposta

Subhash S Chandran

Ranking: New Member

Mensagens: 13

Data de entrada: 28 de Agosto de 2008

Mensagens recentes

We changed the timeout value in web.xml from 30 to 43200. Now we are getting this message every one minute, and Liferay logs me out after that (if I don't extend the session). This happens in Firefox 3.0.3 in Linux environment when using Liferay 5.1.2. Same instance tested in IE6 works fine.
Anexo

Anexos: session.png (8,7k)
Aarti Jain
RE: Liferay session timeout change
24 de Junho de 2009 06:26
Resposta

Aarti Jain

Ranking: Regular Member

Mensagens: 116

Data de entrada: 2 de Setembro de 2008

Mensagens recentes

Hi,

You can try putting following properties in portal-ext.properties:

session.timeout=5
session.timeout.warning=0
session.timeout.auto.extend=true

This will automatically extend your session.

You will not face problem by changing the value in web.xml, if the value is small.


Regards,
Aarti
Ray Vin
Extends not working
1 de Julho de 2009 07:23
Resposta

Ray Vin

Ranking: New Member

Mensagens: 13

Data de entrada: 14 de Outubro de 2008

Mensagens recentes

hi,

I have exactly the same configuration - :

1session.timeout=5
2session.timeout.warning=0
3session.timeout.auto.extend=true


I use the ext environment and put them into the portal-ext.properties. BUT if the user without closing the browser or something else waits longer than five minutes he must login again. I thought it is the last property that should handle this - automatically extending the session.

Working setup:
- Liferay 5.2.2 from SVN
- Build from ext-environment
- FireFox 3 / OS Windows Vista

Can you explain this behavior?

Thanks a lot.
Aarti Jain
RE: Extends not working
1 de Julho de 2009 11:27
Resposta

Aarti Jain

Ranking: Regular Member

Mensagens: 116

Data de entrada: 2 de Setembro de 2008

Mensagens recentes

Hi,

This is working fine with liferay 5.1.2 and liferay 5.2.1. This type of behavior was never seen.

Never used it with liferay 5.2.2.

Regards,
Aarti Jain
Impetus Infotech Pvt. Ltd.
Noida
Ray Vin
RE: Extends not working
1 de Julho de 2009 15:00
Resposta

Ray Vin

Ranking: New Member

Mensagens: 13

Data de entrada: 14 de Outubro de 2008

Mensagens recentes

thanks for the quick reply - I have no idea. after 5 min. the user must login again ?!? have you a hint where to look in the implementation to figure out if something changed?
Victor Zorin
RE: Extends not working
1 de Julho de 2009 15:49
Resposta

Victor Zorin

Ranking: Liferay Legend

Mensagens: 1177

Data de entrada: 14 de Abril de 2008

Mensagens recentes

Funny enough, but to make auto.extend working, you would have to make
session.timeout.warning=1

The auto extension function is written in
docroot/html/common/themes/session_timeout.jsp (session_timeout.jspf for 5.2.2)

Search for SESSION_TIMEOUT_EUTO_EXTEND.


We usually make session length of 8 hours and then autoextend
# 10hrs
session.timeout=600
session.timeout.warning=1
session.timeout.auto.extend=true
Ray Vin
RE: Extends not working
2 de Julho de 2009 00:00
Resposta

Ray Vin

Ranking: New Member

Mensagens: 13

Data de entrada: 14 de Outubro de 2008

Mensagens recentes

Thanks a lot. Now it is working in the desired way. I am wondering about something - I set session.timeout.warning to 0 because I do not want that the user is informed about this sweet little box on the top of his browser. but with your described setting I've tested the box never appeared. so because of setting this property now to the value 1 nothing happened. fine for me. but not really transparent.

thx.
Victor Zorin
RE: Extends not working
2 de Julho de 2009 00:34
Resposta

Victor Zorin

Ranking: Liferay Legend

Mensagens: 1177

Data de entrada: 14 de Abril de 2008

Mensagens recentes

If auto.extend=true warning does not show.

In regards to why do we need timeout.warning setting, [without analyzing the code] I suspect the reason for it is fairly simple:

- we are dealing with client (browser) and server(webserver), and, abstractly speaking, both of them are "tracking" the timeout. (even if it is the same http session object)

- when client detects that session is about to expire, client makes background call '/c/portal/extend_session' and server is extending the session

If client makes such call exactly at a timeout expiration time, there is a good chance that the timeout would already expire on server end.

So the design by liferay implies that call 'c/portal/extend_session' shall be made earlier, i.e. at warning time, which in your case we set at 1 minute. At this time it is guaranteed that the call would be delivered to the webserver before the actual expiration time.
That's it.
Kyrre Myrbostad
RE: Extends not working
7 de Agosto de 2009 00:55
Resposta

Kyrre Myrbostad

Ranking: Junior Member

Mensagens: 37

Data de entrada: 21 de Janeiro de 2009

Mensagens recentes

Thx for the tip, this fooled me also.

Maybe the text in portal.properties could be changed to something like:

#
# Set the auto-extend mode to true to avoid having to ask the user whether
# to extend the session or not. Instead it will be automatically extended.
# The purpose of this mode is to keep the session open as long as the user
# browser is open and with a portal page loaded. It is recommended to use
# this setting along with a smaller "session.timeout", such as 5 minutes for
# better performance.
#
# Note that session.timeout.warning must be set to 1 for this to work. No warnings will be issued at the client.
#
session.timeout.auto.extend=true
Jonas Yuan
RE: Extends not working
3 de Setembro de 2009 14:55
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

Hi Victor,

Thank you. This is very useful message, funny enough ...

1session.timeout=5
2session.timeout.warning=1
3session.timeout.auto.extend=true


Jonas Yuan

-----------------
Liferay Books

Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Chris King
RE: Liferay session timeout change
11 de Setembro de 2009 12:06
Resposta

Chris King

Ranking: New Member

Mensagens: 4

Data de entrada: 14 de Outubro de 2008

Mensagens recentes

Is it possible to set session.timeout.auto.extend=true dynamically or for a subset of users or communities? We would like to have anyone with a 10.* IP address auto extend, but if anyone hits the site from outside the firewall hits the site, then we want them to timeout. We are currently running code that looks at the IP address of the user. Is there an API we could call to set this property?
Jonas Yuan
RE: Extends not working
14 de Outubro de 2009 06:44
Resposta

Jonas Yuan

Ranking: Liferay Master

Mensagens: 993

Data de entrada: 26 de Abril de 2007

Mensagens recentes

The pre-condition is session.timeout.warning.

Only it (session.timeout.warning) is set as 1 as shown in following code, then
session.timeout.auto.extend and session.timeout.redirect.on.expire would get checked.

code in 5.3.
 1
 2[b]<c:if test="<%= sessionTimeoutWarning > 0 %>">[/b]
 3AUI().use(
 4'liferay-session',
 5function(A) {
 6Liferay.Session.init(
 7{
 8[b]autoExtend: <%= PropsValues.SESSION_TIMEOUT_AUTO_EXTEND %>,[/b]
 9timeout: <%= sessionTimeout %>,
10timeoutWarning: <%= sessionTimeoutWarning %>,
11[b]redirectOnExpire: <%= PropsValues.SESSION_TIMEOUT_REDIRECT_ON_EXPIRE %>[/b]
12}
13);
14}
15);
16</c:if>


Thanks

Jonas Yuan
-----------------
The Author of Liferay Books:
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Matus Ferko
RE: Extends not working
3 de Dezembro de 2009 01:41
Resposta

Matus Ferko

Ranking: Junior Member

Mensagens: 26

Data de entrada: 5 de Junho de 2009

Mensagens recentes

I am sorry for the following stupid question, but:

If I set
1session.timeout.warning=1
2session.timeout.auto.extend=true


does it mean the session never expire?
If yes there could be one additional property session.timeout.never. It would be less confusing emoticon
Pravin Bansal
RE: Extends not working
12 de Março de 2010 05:15
Resposta

Pravin Bansal

Ranking: New Member

Mensagens: 4

Data de entrada: 12 de Março de 2010

Mensagens recentes

Guys be careful though, while updating your portal-ext.properties.
Any settings written ext properties will not take effect as long as there is a session time out entry in web.xml (of root in tomcat) clean it before you add any session entries to take effect in your portal-ext properties..
Cheer's
Matus Ferko
RE: Extends not working
19 de Abril de 2010 03:26
Resposta

Matus Ferko

Ranking: New Member

Mensagens: 1

Data de entrada: 3 de Março de 2010

Mensagens recentes

There is following configuration in web.xml file in portal sources:
1<session-config>
2    <session-timeout>30</session-timeout>
3</session-config>


Do I have to delete it, to make my configuration from portlet-ext.properties working? If yes it means that value from portal-ext.properties will never take effect. ?!
Pravin Bansal
RE: Extends not working
25 de Maio de 2010 04:27
Resposta

Pravin Bansal

Ranking: New Member

Mensagens: 4

Data de entrada: 12 de Março de 2010

Mensagens recentes

Hi Matus,

Certainly you need to delete entries
<session-config>
<session-timeout>30</session-timeout>
</session-config>
from web.xml in order ext properties to take effect for session time out.
Please find me for any further questions.

Thank you,
Pravin
sandhya shendre
RE: Extends not working
23 de Janeiro de 2011 22:26
Resposta

sandhya shendre

Ranking: New Member

Mensagens: 5

Data de entrada: 21 de Janeiro de 2011

Mensagens recentes

Hi All,

I have set the session-timeout as 30 min in tomcat\conf\web.xml file and 65 min in root\web-inf\web.xml. Which session-timeout value will be taken in consideration?

I'm getting time out message after 30 min.



Regards,
Sandhya Shendre
Fateh Alchhabi
RE: Extends not working
24 de Janeiro de 2011 04:14
Resposta

Fateh Alchhabi

Ranking: Junior Member

Mensagens: 58

Data de entrada: 1 de Dezembro de 2010

Mensagens recentes

Hi sandhya shendre
regarding to your Question :when you add the 65 values in "root\web-inf\web.xml"

This value is always overridden by the value set in tomcat\conf\web.xml under the folder $PORTAL_WEB_INF_HOME
Tor Iver Wilhelmsen
RE: Extends not working
14 de Fevereiro de 2011 01:14
Resposta

Tor Iver Wilhelmsen

Ranking: Junior Member

Mensagens: 60

Data de entrada: 3 de Dezembro de 2008

Mensagens recentes

Matus Ferko:
does it mean the session never expire?

No, it means that Javascript will be used to refresh the session via "invisible" calls to the web server. This will continue until the browser window (or tab?) showing the site is closed.
Koen Vermeulen
RE: Extends not working
19 de Março de 2013 05:22
Resposta

Koen Vermeulen

Ranking: New Member

Mensagens: 13

Data de entrada: 16 de Fevereiro de 2010

Mensagens recentes

Im trying this in 6.1.20 EE

portal-ext.properties:
session.timeout=1
session.timeout.warning=0

I also changed the entry in web.xml to a session timeout of 1

The warning doesnt come up - But the session doenst get expired after 1 minute.
If i take take away the session.timeout.warning property then it does get expired after one minute.

anyone seen this same problem?
Vijay Chandra
RE: Extends not working
18 de Abril de 2013 02:26
Resposta

Vijay Chandra

Ranking: New Member

Mensagens: 8

Data de entrada: 4 de Abril de 2013

Mensagens recentes

Thanks Pravin to u n u r post ... from past 5 to 6 hrs i was looking fr the solution of how to give user define session time out... recently we migrated to 6.1 from 6.0 ... i was working on with portal-ext.properties by changing the values of session time out .. but it was not effecting ... following u r suggestion i went to web.xml file in
Liferay\bundles\liferay-portal-6.0.6\tomcat-6.0.29\webapps\ROOT\WEB-INF\web.xml and commented out this below lines, for default values of session time out

<session-config>
<session-timeout>30</session-timeout>
</session-config>
and it worked like butter ... thanks man 1ce again ... emoticon
Ripal thakkar
RE: Extends not working
11 de Novembro de 2013 05:31
Resposta

Ripal thakkar

Ranking: New Member

Mensagens: 10

Data de entrada: 29 de Junho de 2011

Mensagens recentes

Hi,

did you get any solution on this?

Thanks,
Ripal
Ripal thakkar
RE: Extends not working
11 de Novembro de 2013 06:08
Resposta

Ripal thakkar

Ranking: New Member

Mensagens: 10

Data de entrada: 29 de Junho de 2011

Mensagens recentes

I got it...

In the session_timeout.jsp, liferay checks if sessionTimeoutWarning is greater than 0 (<c:if test="<%= sessionTimeoutWarning > 0 %>">) then only it calls a liferay.session function which takes care for session expiration and all.

By removing this condition in hook , session is expiring.

Regards,
Ripal Thakkar
Eswaran R
RE: Extends not working
7 de Janeiro de 2015 04:34
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi friends ....

i am using portlet page but tomcat session timeout 30 min ...
so portlet page session timeout ..
how to increase session timeout in portlet page ...

"Warning! Due to inactivity, your session has expired. Please save any data you may have entered before refreshing the page."

how to solve ....???
kindly help me...

Regards ...
Eswaran.R
Eswaran R
RE: Extends not working
7 de Janeiro de 2015 04:35
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi..

my portlet page using at the time session timeout...

how to solve this error ????

my portlet page idle session timeout but now i am using portlet page at the time session timeout ....

thanks..

Regards

Eswaran.R
Eswaran R
RE: Liferay session timeout change
7 de Janeiro de 2015 04:46
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi friends ....

i am using portlet page but tomcat session timeout 30 min ...
so portlet page session timeout ..
how to increase session timeout in portlet page ...

"Warning! Due to inactivity, your session has expired. Please save any data you may have entered before refreshing the page."

how to solve ....???
kindly help me...

Regards ...
Eswaran.R
Eswaran R
RE: Extends not working
7 de Janeiro de 2015 04:47
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi,,,

my portlet page using at the time session timeout...

how to solve this error ????

my portlet page idle session timeout but now i am using portlet page at the time session timeout ....
Eswaran R
RE: Extends not working
7 de Janeiro de 2015 04:48
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi,,,

i am using portlet page but tomcat session timeout 30 min ...
so portlet page session timeout ..
how to increase session timeout in portlet page ...

"Warning! Due to inactivity, your session has expired. Please save any data you may have entered before refreshing the page."

how to solve ....???
kindly help me...

Regards ...
Eswaran.R
Eswaran R
RE: Extends not working
7 de Janeiro de 2015 04:48
Resposta

Eswaran R

Ranking: Junior Member

Mensagens: 82

Data de entrada: 28 de Dezembro de 2014

Mensagens recentes

hi,,,
my portlet page using at the time session timeout...

how to solve this error ????

my portlet page idle session timeout but now i am using portlet page at the time session timeout ....
amir keshavarz
RE: Extends not working
24 de Agosto de 2015 04:31
Resposta

amir keshavarz

Ranking: Junior Member

Mensagens: 54

Data de entrada: 9 de Outubro de 2010

Mensagens recentes

sandhya shendre:
Hi All,

I have set the session-timeout as 30 min in tomcat\conf\web.xml file and 65 min in root\web-inf\web.xml. Which session-timeout value will be taken in consideration?

I'm getting time out message after 30 min.



Regards,
Sandhya Shendre


My tests show that root\web-inf\web.xml is taken.