We tried as suggested to change Apache from prefork to fast_cgi and unfortunately the problem still occurs.
We noticed a very strange behavior of the session cookie.
It seems that a first session cookie is generated before the login by the client with a specific id and a session duration different from that set by the interface, the duration of this cookie is that of the configuration of the php.ini file.
At login the first cookie is not updated and is not updated until a client opens a page or performs a refresh of the page itself.
The new cookie that is generated by the refresh or by the opening of the new page, has a different id and actually has the duration set by the osTicket interface.
The problem that I described in the previous message occurs only when I still have the first cookie generated with the duration taken from the php.ini file.
With the second cookie generated when the page is refreshed or when a page is opened the problem does not seem to occurs.
Cheers.