I have searched stack-overflow, and the web, and have found nothing that seams to work. I hope you can help!
I am using Drupal 6.16,
I have tried using this method:
var cookie_value = jQuery.cookie("DRUPAL_UID");
if(cookie_value != 0)
// execute some code...
but I always get "null"