Support » Plugin: Custom Login Page Customizer | LoginPress » Session time and activities only on Dashboard?

  • Resolved Harm10

    (@harm10)


    Hi!
    I have my session time set to 120 minutes. I notice quite often that I am getting logged out although I am active only in the Dashboard.
    Is this correct?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hello, @harm10

    Sorry, for the trouble. You need to follow these steps to set session expiration time & cookies.

    1. Go to LoginPress ▸ Settings from the Dashboard menu.
    2. Under the Settings tab. You can find the Session Expire: field.
    3. Set the Session Expiration Time in Minutes e.g: 10 or you set 120
    4. After sets the time click the Save Changes button.
    5. After saving, now you just need to set the Expiration Cookies. For this, please logout at least one time.
    6. After logout, Expiration Cookies are set. Session expiration will work now.

    Please make sure you have followed the step 5th & 6th. You need to logout at least 1 minute after save Expiration Time to expire the previous Cookie.

    Thank you.

    • This reply was modified 3 months, 1 week ago by  Abdul Wahab.

    Thanks for your reply. The reported behavior is there since a long time. The other admin has the same experience.
    I have redone the sequence you described (including the logout) and will see what will happen.
    How can I check the correct cookie has been set/created?
    And how can I check the time is updated when I am active on the site?

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hi,

    Is your session expiration time working fine now?
    Session expiration cookie saved in your browser cookie internally.

    Thank You.

    Maybe I should ask this first: I interpret the session expiration time as time that should pass WITHOUT any activity. Is this interpretation correct?
    Because I still got the feeling that the 120 minutes I have set now are passing faster then expected when I am not doing anything on the site.

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hi, @harm10

    Session expiration functionality is verified and it works perfectly.
    The session should be expired on TIME (that you’ve set in LoginPress option) if you DO/DON’T anything on your site.

    Thank you.

    OK. That is clear now.
    But then I repeat my question how can I check that the time is UPDATED each time I DO something? Our experience seems to point that if you only do things on the dashboard the time expires the time set after log in instead of after last activity.
    It is difficult to exactly monitor the time passed so looking at the cookies (I am a developer) should make this more clear. What is the cookie name?

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hi, @harm10

    Nice to know that you are Dev too. We’re using the auth_cookie_expiration filter for expiration period. Here you can read more about this filter.

    Thank you.

    Harm10

    (@harm10)

    Am I right that you do not use your own cookie for this session time period? But are depending on the wordpress wp-settings-time?
    Just now I experienced the log out again. I was searching in the dashboard and not updating or something like that. And suddenly I was logged out.
    So do you know when WP updates its settings-time?

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    1- Yes, you are right. We are using WordPress cookies for the session time period.

    2- I was said in the previous comment that the session should be expired on TIME (that you’ve set in LoginPress option) if you DO/DON’T anything on your site. (Like You are searching in Dashboard and log out on time)

    3- Cookies are updates each time when you logged in to the dashboard.

    Harm10

    (@harm10)

    Thanks for the explanation. If I understand point 3 correctly this explains our experience: we log in, do a lot of work on the dashboard side for a while and suddenly get logged out after the set TIME. To us this is undesired behavior.
    What we would expect is that each update we do resets that time. We expect it to be inactivity time. I guess that is not possible with the current construction?

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Yes, It’s not possible with the current situation.

    Harm10

    (@harm10)

    OK. I will inform my user about this. Thanks for all your explanation.

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.