Both of them can be used, but they have different tones. "for a month" is generally negative in tone. Something someone says if they had expected to see the other person sooner, or something someone my say in reply to someone who has business for them but has not seen them in a while.
"In a month" can also be used that way, but it can also be a more neutral way of saying "I haven't seen you in a while."
I'd stick with "in a month" unless you're absolutely sure you've heard it the other way in a similar situation.