Kan. Stat. Ann. § 58-2301
In the absence of stipulations to the contrary, the mortgagor of real property may retain the possession thereof.
G.S. 1868, ch. 68, § 1; October 31; R.S. 1923, 67-301.