This is only a guess, but the only way PHP can detect if cookes are enabaled is to see if the next browser window returns the cookies, therefore to ensure that PHP remembers the session you would have to store on the SID the first time. After that you PHP would know whether cookies where enabled.