I put these lines in /etc/profile
TMOUT=1200 readonly TMOUT export TMOUT As others already mentioned, you'll have to look up what's in profile.d/timeout.sh and what package that file belongs to.
Generally speaking, I'm not sure it's a brilliant idea to globally set an environment variable with a generic name, yet no generic semantics, in profile.