$xwiki.getUserPreferenceFromCookie("my_cookie")
Also check $xwiki.getUserPreference("my_cookie", true)
On 2/19/07, EMPTOZ Mathieu 310507 <Mathieu.EMPTOZ(a)cea.fr> wrote:
  Hello everybody,
 Is there a way to get a cookie value with a function of the velocity
 syntax? I created a cookie with the javascript "createCookie()" function (in
 the file skins.js) and I would like to get it value in a velocity script
 in order to insert it in a sql query. Because I need to get the cookie
 value before the velocity parsing.
 For example in my wiki page :
 #set($sql = " where doc.fullName = '$
 a_function_which_read_a_cookie_value(name_of_the_cookie)' ")
 
--
http://purl.org/net/sergiu