Thanks mzilikazi.
I have looked at the file before but am a bit confused.
When I type "env" in bash I got a list of all variables, however in /etc/profile I could notice only PATH and some others but not all of them.
Some other non-standard temporary variables such as "http_proxy" must be written somewhere too.
They are not in /etc/profile.