This functionality will hopefully be in D8 core, but for D7, download the D6 module and change all the occurrences of "6" to "7" in the .info file:
name = Cookie Check D7
description = Checks for cookie support when users are attempting to log in and provides an error message.
core = 7.x
; Information added by drupal.org packaging script on 2009-01-21
version = "7.x-1.0"
core = "7.x"
project = "cookie_check"
datestamp = "1232565009"
Comments
Comment #1
nedjo#2946-114: Login fails and no warning is issued if cookies are not enabled indicates that the approach would need to be rewritten for D7. I have no plans to do so, but would welcome patches or a new maintainer.
Comment #2
promesI updated the D6 version to D7 and don't have any problems. Both with and without the $cookie_domain set in settings.php it works.
Comment #3
kruser commentedThis functionality will hopefully be in D8 core, but for D7, download the D6 module and change all the occurrences of "6" to "7" in the .info file: