Sajith
Sajith

Reputation: 856

How to set value in Cookie then how to get in server side

How to set value on the cookie in client side then after i need to get value in server side .

Could please give me one example i would really appreciate you

Upvotes: 0

Views: 450

Answers (1)

Asons
Asons

Reputation: 87201

Create cookie:

document.cookie="cookiename=John Doe";

Read cookie:

Request.Cookies(cookieName)

More reading about cookies:
http://www.w3schools.com/js/js_cookies.asp
http://www.w3schools.com/ASP/asp_cookies.asp

Upvotes: 1

Related Questions