Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ravi N
Session timing out even when a download is in progress
May 6, 2008 10:31 PM
Answer

Ravi N

Rank: New Member

Posts: 19

Join Date: November 27, 2007

Recent Posts

Hi,
I am trying to develope a download page. I wrote custom servlet and providing a link to call the servlet for download.
Getting download wizard and download is going on, but when there is large fiie download, the session is timing out.
I set session timeout to 10 min and my file donwlonad takes 20 mins, but liferay session timing out.
Any way to solve this problem

Thanks,
Ravi
Arcko Duan
RE: Session timing out even when a download is in progress
May 6, 2008 10:57 PM
Answer

Arcko Duan

LIFERAY STAFF

Rank: Regular Member

Posts: 234

Join Date: January 1, 2008

Recent Posts

U can configure the session in portal.properties

 1##
 2## Session
 3##
 4
 5    #
 6    # Specify the number of minutes before a session expires. This value is
 7    # always overridden by the value set in web.xml.
 8    #
 9    session.timeout=30
10
11    #
12    # Specify the number of minutes before a warning is sent to the user
13    # informing the user of the session expiration. Specify 0 to disable any
14    # warnings.
15    #
16    session.timeout.warning=1
17
18    #
19    # Set the auto-extend mode to true to avoid having to ask the user whether
20    # to extend the session or not. Instead it will be automatically extended.
21    # The purpose of this mode is to keep the session open as long as the user
22    # browser is open and with a portal page loaded. It is recommended to use
23    # this setting along with a smaller "session.timeout", such as 5 minutes for
24    # better performance.
25    #
26    session.timeout.auto.extend=false
Ravi N
RE: Session timing out even when a download is in progress
May 7, 2008 1:58 AM
Answer

Ravi N

Rank: New Member

Posts: 19

Join Date: November 27, 2007

Recent Posts

Thanks for the reply, but i don't want to increase the session timeout as the files i download through my page are dynamic and files will be large size. I want to make sure session is in active state while download is going on.

Thanks,
Ravi