javascript - Cookie having "=" in value -


i have check whether cookie exist or not while making request. problem cookie value having "=" in e.g.

....;username=firstname=meet;....

here cookie name "username" , cookie value "firstname=meet". problem when try cookie document.cookies. getting cookies after exploding result using split function ";".

for getting values exploding / splitting each value "=" cookie value coming till firstname only.

any thoughts can whole value firstname=meet.

thanks, meet

// when cookie string: unescape(cookiedata); // when set cookie string: escape(yourstring); 

Comments