Search This Blog

Monday, September 30, 2013

Session timeout redirection

The session timeout can be handled using few properties in the portal-ext.properties file. .

# Extending session automatically
session.timeout.auto.extend=false



#This property can be used to redirect to home page when the session expires.
session.timeout.redirect.on.expire=true

#Set the login url
auth.login.url=/web/guest/home


note :
for session.timeout.warning=30,
#it is redirects to http://localhost:8080/web/guest/home

for session.timeout.warning=0,
#it is redirects to
#http://localhost:8080/web/guest/home?p_p_id=58&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2flogin%2flogin&_58_redirect=%2fweb%2f10311%2fwelcome

2 comments:

  1. hi , I wan't to redirect to login page after session timeout how i can do this

    ReplyDelete
    Replies
    1. Use Portlet properties for it as added below (in the file portal-ext.properties )
      session.timeout.warning=0
      session.timeout.auto.extend=false
      session.timeout.redirect.on.expire=true
      ##add the url of the page you wnat to redirect to after session has expired
      session.timeout.redirectUrl=/web/guest/welcome

      Delete

My Blog List