hello since im noob in Javascript, i have several questions.. firstly, i have this cookie: __utma=242132376.2075993633.1235995318.1236190921.1236197444.17, __utmz=242132376.1235995318.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none), __utma=126557082.838597791.1235995357.1236250783.1236253758.16, __utmz=126557082.1236197869.11.6.utmccn=(referral)|utmcsr=example.com|utmcct=/|utmcmd=referral, forumKIT=NM=&PW=&ID=&temp=0, names=test1,test2, __utmc=126557082, __utmc=242132376, __utmb=126557082, PW=testpasshash, NM=testlogin PHP: now i want to login to my site using this cookie.. so what i need is..how to use javascript code to read this cookie and perform login.. any ideas? ps:this cookie generated from aspx script.. regrads,
Hi linkinpark, why not give a google "cookie javascript"? You will get lot of info about how javascript set/read/delete cookies with plenty of source codes ready to use. Or look at http://www.webtoolkit.info/javascript-cookies.html And about performing login. You mean if cookie is set or has correct value open secret page? I think you will anyway need some server side script, if you dont want just do window.location.href='your_protected_url'; Hope it helps you further...