added in path, domain and secure option to cookie