I hope you don't mind my staying with you tonight.
I hope you don't mind me staying with you tonight.
Are both okay?
Those are the names of the uses you brought up. If you don't understand them, I suggest you Google them and read some web pages.
Alternatively, just please yourself which you use — they are both correct.