Hi All,

I want to get the ASCID cookie from the browser using javascript to
give it to JavaFX, and then in JavaFX do http request introducing the
ASCID cookie in the header.

I try it with this code but I can only get the JSESSIONID cookie:

<script language="javascript" type="text/javascript">

  function CogerCookie(c_name)
  {
  if (document.cookie.length>0)
    {
    c_start=document.cookie.indexOf(c_name + "=");
    if (c_start!=-1)
      {
      c_start=c_start + c_name.length+1 ;
      c_end=document.cookie.indexOf(";",c_start);
      if (c_end==-1) c_end=document.cookie.length
      return unescape(document.cookie.substring(c_start,c_end));
      }
    }
  return null;
  }



function Cookies_auten(formulario){
                //<!--var app = document.getElementById("appcalc");
app.script.ACSID-->
         if(CojerCookie("JSESSIONID") != null)
         formulario.J.value = CojerCookie("JSESSIONID");
         if(CojerCookie("ACSID") != null)
                 formulario.A.value = CojerCookie("SID");
         else   formulario.A.value = "No hay";
         if(CojerCookie("GoogleAccountsLocale_session") != null)
                 formulario.G.value = 
CojerCookie("GoogleAccountsLocale_session");
         else   formulario.G.value = "No hay";

}

</script>

Highly appreciate if somebody can help me.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to