This topic is locked

session expire

11/28/2023 4:14:12 PM
PHPRunner General questions
francesco author

I successfully set up session expire time, bu I want that session never expire when $data["groupid"]=="admin".
Is it possible to add code in someplace to do that? thanks

K
kohle 11/29/2023

Hi,
I think that is not possible. Maybe I am wrong.

An idea is to set the session to never expire and handle the automatic logout of the other groups
with a datetime value in a session variable which you update and check for ex. in the main listpage of the project.

What I do sometimes is that I have a project for the admins and a project for the other users.
Both use the same database but not the same session. Each session can be configured separate

rg
J

francesco author 11/29/2023

thanks for the advice, I will try this if there isn't another better solution