Jump to content
Sign in to follow this  
dlg18792

Undefined Cookie return

Recommended Posts

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.

Share this post


Link to post
Share on other sites

How are you saving the data to the cookie? Are you use that the cookie you're looking for exists?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Show the code where you set the cookie's value.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...