Javascript cookie

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TimSki
    New Member
    • Jan 2008
    • 83

    Javascript cookie

    Hi,

    In my application i create a cookie using javascript using a function like this.


    Code: ( text )
    function setCookie(c_nam e,value,expired ays)
    {
    var exdate=new Date();
    exdate.setDate( exdate.getDate( )+expiredays);
    document.cookie =c_name+ "=" +escape(value)
    +((expiredays== null) ? "" : ";expires="
    +exdate.toGMTSt ring());
    //alert ("date=" + exdate.toGMTStr ing());
    }

    The problem is i can't find it on the machine (Vista ie7). Cookies created using asp scripts show under the temporary internet files but seemingly not those created using javascript. I'vesearched all the hidden folders but with no joy.

    Can anyone tell me where they are stored pls...

    Thanks
  • questionit
    Contributor
    • Feb 2007
    • 553

    #2
    Try this folder:

    C:\Users\Username\AppData\Roamin g\Microsoft\Win dows\Cookies

    Change Username with your user name on windows.

    Qi

    Comment

    Working...