Link to home
Start Free TrialLog in
Avatar of bjmurray
bjmurrayFlag for Australia

asked on

Using jquery to select all cookies with a specific prefix

Sorry for the newbish question, but i'm a bit out of my league when it comes to regular expressions.

Using jquery, I'm wanting to loop through all cookies, filtering ones with a specific prefix and setting their value to 0.

ie:

ccookiePrefix_abc
ccookiePrefix_bcd
ccookiePrefix_cde
ccookiePrefix_def

So iterate through all cookies, matching those with the prefix cookiePrefix_ and setting their values to 0.

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial