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?
Cookie should still be sent with every request, even if set by javascript.
Only real reason I can think of to set a cookie by javascript is if your saving something modified client side – like the custom look and feel you mentioned.