Manual:$wgCookieSetOnAutoblock

Details
The cookie that is set will expire when the block expires or after 24 hours, whichever is shorter.

This means that cookies for infinite blocks will expire after 24 hours.

The cookie is named 'BlockID', prefixed with .

Its value is just the hashed block ID and no other data.

See Autoblock for more information.