Ok also i was watching the islamic talk(one day ill remember what its called) and there was a iman on there he goes that a man is allowed a short term marriage to clear his sexual needs

this is only for those who move away from home to study.. is this true and if so why cant a women do it?