<p>Testing:</p>

<pre><code>return request.getCookies() == null;
</code></pre>

<p>is not an appropriate way test. Is there another way?</p>

You generally want to use JavaScript to determine if the client's browser has cookies enabled:
```
```
<script type="text/javascript">
var cookieEnabled=(navigator.cookieEnabled)? true : false

//if not IE4+ nor NS6+
if (typeof navigator.cookieEnabled=="undefined" && !cookieEnabled){ 
document.cookie="testcookie"
cookieEnabled=(document.cookie.indexOf("testcookie")!=-1)? true : false
}

//if (cookieEnabled) //if cookies are enabled on client's browser
//do whatever

</script>
```
```