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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -