Is there a difference between javascript cookies and php cookies?
No, cookies are defined by an RFC spec.