kevin_911's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
127 (0.06 per day)
Joined:
02-April 09
Profile Views:
3,493
Last Active:
User is offline Oct 06 2013 04:44 PM
Currently:
Offline

Previous Fields

Country:
Who Cares
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
Intel
Favorite Gaming Platform:
PC
Your Car:
Volkswagen
Dream Kudos:
0

Latest Visitors

Icon   kevin_911 has not set their status

Posts I've Made

  1. In Topic: Jquery Adding and Removing Cookie

    Posted 23 Sep 2012

    View PostMartyr2, on 23 September 2012 - 02:37 PM, said:

    Well doing an expires -1 is going to expire the entire cookie which is under the same key "Cookies". Remember that it is a key->value system here so your entire my_array is being placed under the key "Cookies".

    Have you tried removing the value from "my_array" and resetting the cookie with the same name? This should overwrite the cookie at the key "Cookies" minus the value since it is no longer in the array.

    :)


    Actually I realised that right after I posted this but forgot to update this post.

    I tried removing the item from array list but now my jquery is not working :(
    It doesn't remove the cookie from the array.
    var val = $(this).attr("href");
    var index = my_array.indexOf(val) > -1;
    if (index = -1) {
           myarray.splice(val);
        }
    e.preventDefault();
    return false;
    


    Edit: As mentioned above, the cookies are stored like 74851%2C48877%2C55669 do I need to split it and then remove the element?

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Programming Languages:
C++; C; ASP.NET; VB; MYSQL; Javascript; Unix/Linux

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Friends

kevin_911 hasn't added any friends yet.

Comments

kevin_911 has no profile comments yet. Why not say hello?