Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP How to reset a cookie?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


brijesh
How to reset a cookie?
1 Answer(s)      3 years and 11 months ago
Posted in : PHP


How to reset a cookie


Advertisement
View Answers

November 12, 2010 at 5:41 PM


// to create a cookie

Cookie c=new Cookie("name",request.getParameter("name"));

//to Add cookie String name=request.getParameter("name"); response.addCookie(c);

//to reset cookie or delete cookie

Cookie c=new Cookie("name","null");

response.addCookie("name")



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com