Is it safe to just delete records in table "xxx_session"?

Is it safe to just delete records in table “xxx_session”? Or is this table connected to something else in the db and/or Matomo? Will the session records with a lifetime that expired be automatically removed in the DB?

During my setup of Matomo I ended up with quite many records in table “xxx_session” with a lifetime way too long, I did not have “login_cookie_expire” set in config.ini.php. I added login_cookie_expire = 1800 to get the sessions to live for 30 min.

/Fred

Hi @Fred_Ahlen
Another question for @innocraft :wink:

Hi @Fred_Ahlen ,

session table is to store the login session, it will not have any impact if you delete it, only thing is user will be asked to login again login_cookie_expire set.

1 Like

Ah OK, thank you for confirming this. Then is is safe to delete records in it.

All the best!