I have declared a javascript variable ,
var myJavascriptVar = 12345;
And unable to assign that value to php variable;>
Using Cookie is the better solution i think -