Programming.a.baby - (Asp) Object Request Cookies
By pol1ce
Asp Article 10
Why Cookies
In this Article i will show you how to request a Cookie, using Asp
The questions are:
- What is a Cookie?
- Why we need Cookies?
- What i would do with it?
- How to set a Cookie?
- How to Request it?
Stay with me and lets learn how and why!
Hey You There
- AH! Before we continue, I know that I've many visitors reading my Asp Articles, i can see that in the statistics, so i want you to know that all these Articles and Code are all my work, is not some copy and paste stuff, and you know that this takes time.
You learn in the easiest way and you do not pay for this, so even if you are a beginner, a curious person or a programmer with some practice, the only thing i ask you is:
Please Comment, i will appreciate your comments and i will answer them, I've more than 20 year of programming practice, and i work with almost 30 languages, but i share it with you, no secrets.
...
What is a Cookie
A cookie is a file that the Web server will install in the USer's Web Browser, which can serve you for reconize the user and to write values on it.
Why i need Cookies
Almost every Web Site use Cookies.
They do it because they want to set parameters that will help them to know if the user is still there and what kind of preferences he has...etc
What i would do with it
You will discoverer how good this will be for your own info, after you start using it
Code 1 - Create Cookie
<%
Response.Cookies("nickname")="Fantasy"
%>
Request Cookie
To Request the Cookie you just create, you do like tou see in the Code 2 - Request Cookie.
Then you can manipulate it by for example writing it in the Web Page, so the user will see it, or you can invent many other utilizations.
Code 2 - Request Cookie
<%
Cnick = Request.Cookie("nickname")
Response.Write ("Your Nickname is" & Cnick)
%>
Setting a Cookie
For setting a Cookie in the user's Web Browser the procedure is very simple, like you can see in the Code 1 - Create Cookie.
This will create the cookie that you can manipulate during the time that user will maintain the Web Browser open.
Other Asp Articles
- 10) Programming.a.baby - (Asp) Object Request Cookies
In this Article i will show you how to request a Cookie, using Asp The questions are: What is a Cookie? Why we need Cookies? What i would do with it? How to set a Cookie? How to Request it? Stay with... - 9) Programming.a.baby - (Asp) Server Variables Samples
Like as you read in the last article (Programming.a.baby - (Asp) Object Request Server Variables List), here there are the samples for the Object Request Server Variables There is something, that you have to... - 8) Programming.a.baby - (Asp) Server Variables List
Server variables provide information: About the server The connection with the client And the current request on the connection What can we do with this? I will show you some examples, but... - 7) Programming.a.baby - (Asp) Object Request Form
In the last Article i did splash you with lots of Quiz right! Is the best way to learn, Testing your knowledge. If you didn't make the Quiz Tests, then please go here (Programming.a.baby - (Asp) Object... - 6) Programming.a.baby - (Asp) Object - Quiz
Last Article ( Programming.a.baby (Asp) Object Request ) you did learn how to use the Object Request for Querystrings. In this article i will explain you how to us the Object Request for Forms But before you... - 5) Programming.a.baby - (Asp) Object Request
If you follow my last article ( Programming.a.baby (Asp) Object Response ), you did learn about one object, the Response Object, now we will learn about another one, the Request Object. With this one you can... - 4) Programming.a.baby - (Asp) Object Response
At this time, after reading my previous articles of Asp Programming.a.baby , you know already the Asp Response Object, since we used to make the Asp Interpreter to write Html Text. Now lets learn another... - 3) Programming.a.baby - (Asp) The Asp Variables
This article is for people that: Already read my previous article Programming.a.baby - (Asp) What is Already know how to declare the Asp document's language Already have a place to upload the Asp... - 2) Programming.a.baby - (Asp) My first Asp Page
In this Article i will gonna teach you how to write a simple Asp page the easy way i can. If you need to test your Asp pages you have 3 choices: (Windows) Install or have an IIS web server (Linux)... - 1) Programming.a.baby - (Asp) what is
Asp means
.
Next -->
Programming.a.baby - (Asp) Functions
Comments
No comments yet.