dlg18792 Posted February 2, 2012 Share Posted February 2, 2012 Hi I have finaly managed to get a cookie to save the data i want it to. I now have a problem that it saves it with Undefined after it. and when i try and pull the information out i will either get Undefined displayed in my webpage or the information i saved with the word undefined after it. how do i define the code i am putting in to the cookie as text. i am using the code from the following website www.jslab.dk. Link to comment Share on other sites More sharing options...
Ingolme Posted February 2, 2012 Share Posted February 2, 2012 How are you saving the data to the cookie? Are you use that the cookie you're looking for exists? Link to comment Share on other sites More sharing options...
dlg18792 Posted February 2, 2012 Author Share Posted February 2, 2012 i have tried the page on firefox and looked in the options and found the cookie there and it displays the following in the cookie %24name%26WhiteLed1undefined%24age%26604800undefined%24date%261328199137653undefined%24path%26%2Fundefined%24domain%26192.168.0.231undefined%24secure%26falseundefinedinfo%2663%25undefine The bit i coloured in is that bit i am using. the out put on the iPad i am using this website on show 63%undefine. I sould only get 63%if i view it in fire fox it just shows Undefined. I dont know were i am going wrong. Link to comment Share on other sites More sharing options...
Ingolme Posted February 2, 2012 Share Posted February 2, 2012 Show the code where you set the cookie's value. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.