C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
9
Reply
What is syntax for implementing Cookie ?
Sandeep Kumar
9y
1.7k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
HttpCookie Cookie1 = new HttpCookie("Cookie name"); Cookie1 .Value = DateTime.Now.ToString(); //cookie time Cookie1 .Expires = DateTime.Now.AddDays(1);//cookie expired
Nikhil Sangani
9y
1
HttpCookie sampleCookie = new HttpCookie("UserName"); sampleCookie.Value = "Bhuvan";
Bhuvanesh Mohankumar
9y
0
http://dotnet-munesh.blogspot.in/2013/12/cookies.html
Munesh Sharma
9y
0
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Keerthi Venkatesan
9y
0
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Keerthi Venkatesan
9y
0
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Rubiya Rajamanickam
9y
0
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Kml Surani
9y
0
HttpCookie aCookie = new HttpCookie("lastVisit"); aCookie.Value = DateTime.Now.ToString(); aCookie.Expires = DateTime.Now.AddDays(1);
Ravi Patel
9y
0
Syntax for implementing Cookie is Httpcookie object=new Httpcookie(); Cookie class object=new Cookie class();
Sandeep Kumar
9y
0
What is default time of cookie ?
Server side state management contains what ?
Message