Comment 10 for bug 1259275

Revision history for this message
Luke Duncan (lduncan) wrote : RE: [Bug 1259275] Re: Duration of page visability after auto log out message

Dear Kayode,

To use it in earlier versions you would have to manually set the values using the magic data browser. It can't be set from a module file.

The correct path to use with 4.1-dev is: /user_prefs/timeout/user_timeout

Luke

> -----Original Message-----
> From: Kayode Odusote [mailto:<email address hidden>]
> Sent: Monday, January 06, 2014 5:28 AM
> To: Luke Duncan
> Cc: Bug 1259275; Carl Leitner
> Subject: Re: [Bug 1259275] Re: Duration of page visability after auto log out
> message
>
> Dear Luke,
>
> Since the changes are made only to version 4.1-dev, if one wants to use it in
> earlier versions, then the path of the code below that can be added to site
> modulehas to change:
>
> <configurationGroup name="user_timeout" path="//config/site">
> <version>4.1.6.7</version>
> <configuration name="user_timeout">
> <displayName>User Timeout</displayName>
> <value>300</value>
> </configuration>
>
> What would be the correct path:
>
> "/user_prefs/timeout/user_timeout"
>
> OR
>
> "/modules/user_prefs/timeout/user_timeout"
>
> Best wishes.
>
> Kayode
>
>
> On 12/18/13, Luke Duncan <email address hidden> wrote:
> > Dear Kayode,
> >
> > I also figured out my mistake with writing the values in a
> > configuration file. The problem is the /config location is meant for
> > code updates only and can't be updated from modules for safety
> > reasons. I've updated the code in 4.1-dev so it now reads from:
> >
> > /user_prefs/timeout/user_timeout
> > /user_prefs/timeout/user_timeout_message
> >
> > It will still read from the /config/site/* location as well, but if it
> > exists in /user_prefs/timeout then that value will be taken instead.
> >
> > Thanks,
> > Luke
> >
> >> -----Original Message-----
> >> From: Kayode Odusote [mailto:<email address hidden>]
> >> Sent: Wednesday, December 18, 2013 10:41 AM
> >> To: Luke Duncan
> >> Cc: Bug 1259275; Carl Leitner
> >> Subject: Re: [Bug 1259275] Re: Duration of page visability after auto
> >> log out message
> >>
> >> Dear Luke,
> >>
> >> Works fine now.
> >>
> >> Thanks.
> >>
> >> Kayode
> >>
> >>
> >> On 12/18/13, Luke Duncan <email address hidden> wrote:
> >> > Dear Kayode,
> >> >
> >> > I've made some changes to I2CE dev that should fix this issue.
> >> >
> >> > Thanks,
> >> > Luke
> >> >
> >> >> -----Original Message-----
> >> >> From: Kayode Odusote [mailto:<email address hidden>]
> >> >> Sent: Wednesday, December 18, 2013 6:12 AM
> >> >> To: Luke Duncan
> >> >> Cc: Bug 1259275; Carl Leitner
> >> >> Subject: Re: [Bug 1259275] Re: Duration of page visability after
> >> >> auto log out message
> >> >>
> >> >> Dear Luke,
> >> >>
> >> >> Whilst testing it out, can you check out this observation. After
> >> >> the first or second user time-out, future time outs duplicates the
> >> >> message. I tried it out on two separate sites and got the same
> >> >> result.
> >> >>
> >> >> Seasons greetings.
> >> >>
> >> >> Kayode
> >> >>
> >> >>
> >> >> On 12/18/13, Luke Duncan <email address hidden> wrote:
> >> >> > Dear Kayode,
> >> >> >
> >> >> > You should be able to add those paths to any module to add or
> >> >> > update the values. I'll test it out on my local copy and let
> >> >> > you know if I have any issues, but it should work like any other
> >> >> > magic data
> >> node.
> >> >> >
> >> >> > Thanks,
> >> >> > Luke
> >> >> >
> >> >> >> -----Original Message-----
> >> >> >> From: Kayode Odusote [mailto:<email address hidden>]
> >> >> >> Sent: Tuesday, December 17, 2013 4:02 PM
> >> >> >> To: Bug 1259275
> >> >> >> Cc: Luke Duncan; Carl Leitner
> >> >> >> Subject: Re: [Bug 1259275] Re: Duration of page visability
> >> >> >> after auto log out message
> >> >> >>
> >> >> >> Dear Luke,
> >> >> >>
> >> >> >> At the end of the user timeout, the current page closes and the
> >> >> >> login page is displayed with the user-timeout message as desired.
> >> >> >>
> >> >> >> However, one still needs to manually set the user-timeout and
> >> >> >> user-timeout-
> >> >> >> message nodes manually in magic data browser but one can live
> >> >> >> with that for now.
> >> >> >>
> >> >> >> Thanks.
> >> >> >>
> >> >> >> Kayode
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On 12/16/13, Kayode Odusote <email address hidden>
> wrote:
> >> >> >> > Dear Luke,
> >> >> >> >
> >> >> >> > Thanks for this modification. Would test and revert.
> >> >> >> >
> >> >> >> > Seasons greetings.
> >> >> >> >
> >> >> >> > Kayode
> >> >> >> >
> >> >> >> >
> >> >> >> > On 12/16/13, Luke Duncan <email address hidden>
> wrote:
> >> >> >> >> I have made some changes to I2CE 4.1-dev revision 3496 that
> >> >> >> >> addresses this issue. There is now some javascript added to
> >> >> >> >> pages where the user is logged in that includes the same
> >> >> >> >> timeout as the site when accessing page so it will
> >> >> >> >> automatically send the browser to the logout page if the
> >> >> >> >> user is idle
> >> for the timeout in seconds.
> >> >> >> >>
> >> >> >> >> ** Changed in: ihris-manage
> >> >> >> >> Status: New => Fix Committed
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> You received this bug notification because you are
> >> >> >> >> subscribed to the bug report.
> >> >> >> >> https://bugs.launchpad.net/bugs/1259275
> >> >> >> >>
> >> >> >> >> Title:
> >> >> >> >> Duration of page visability after auto log out message
> >> >> >> >>
> >> >> >> >> Status in iHRIS Manage:
> >> >> >> >> Fix Committed
> >> >> >> >>
> >> >> >> >> Bug description:
> >> >> >> >> Feature request made on behalf of Kayode Odusote.
> >> >> >> >>
> >> >> >> >> The timeout and the timeout_message work fine. However, is
> it
> >> >> >> >> possible to change the time action takes place after the
> >> >> >> >> timeout?
> >> >> >> >>
> >> >> >> >> As it is the opened page remain visible at timeout until
> >> >> >> >> the person
> >> >> >> >> tries to work on the page again then the login page and
> >> >> >> >> message
> >> >> >> >> appears. Is it possible to change the code such that at
> >> >> >> >> the moment of
> >> >> >> >> time out, the login page and message are displayed instead
> >> >> >> >> of waiting
> >> >> >> >> for the person to return to the page before that happens?
> >> >> >> >>
> >> >> >> >> To manage notifications about this bug go to:
> >> >> >> >> https://bugs.launchpad.net/ihris-
> >> >> manage/+bug/1259275/+subscription
> >> >> >> >> s
> >> >> >> >>
> >> >> >> >
> >> >> >
> >> >
> >