Manual:$wgCookieSetOnIpBlock

The cookie will contain an authentication code if is set, or otherwise will just be the block ID (in which case there is a possibility of an attacker discovering the names of revdeleted users, so it is best to use this in conjunction with  being set).