I was wondering is there any clear advantage of setting some cookie though JavaScript in client side compared to use of setcookie() function in PHP? The only reason i can think of is reducing some network traffic (First time). but its not very clear is there any other advantage?
Also if i am using Cookie (created by Java-Script calls) to retain the portion of information which i want to set at the client level (some custom look and feel) will this cookie sent to server with each HTTP request?