Manual:$wgDisableCookieCheck

Details
If set to true, MediaWiki will assume that the user has a valid session cookie after logging in or creating an account.