Not licensed or not registered correctly

Suggested

I have a client who has several custom asp related to Company.

If a user is sitting on one of these pages when their session times out due to inactivity they see: "Not licensed or not registered correctly"

Their system was recently upgraded to 2024 from 7.2 (the long / correct way).

This issue was present before though but I wondered if there was anything that could be added to the asp to handle the timeout gracefully ie return to login screen.

Thanks