Security, cookie, session, i'm lost!


I would need help configuring my environment, here are the different errors I encounter:

  • Every morning when I connect, I have a message telling me that I am already connected and that the user will be disconnected. How to remove this message or automatically log in the user?
  • If the session closes and I go to the main page of the site, it is marked that I do not have access. How to put an automatic redirection to the login page?

I would like :

  1. Keep the session open all day, without having to reconnect
  2. Never see an error message, but automatically redirect the user or automatically log him in

Thanks for your help