Dear Julia,
I believe that users are accessing the backend ABAP system from Portal system or HTML GUI.
If the users are accessing the backend system from a portal system then you have to maintain the SAPFactory parameter on portal side.
Also activate the logoff SICF services on the ABAP system.
Also check the sapnotes suggested by Mercedes Fernandez
With Regards
Ashutosh Chaturvedi