BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Request.ClientCertification Property
The Request.BinaryRead Method
The Request Object
The ObjectContext.SetComplete Method
The ObjectContext.SetAbort Method
The ObjectContext.OnTransactionCommit Event
The ObjectContext.OnTransactionAbort Event
The ObjectContext Object
The Application.StaticObjects Collection
The Application.Contents Collection
The Application.UnLock Method
The Application.Lock Method
The Application.Contents.RemoveAll() Method
The Application.Contents.Remove(name|index) Method
The Application.OnStart() Event
The Application.OnEnd() Event
The Application Object
The ASPError.Source Property
The ASPError.Number Property
The ASPError.Line Property
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :1117

 

The Request.Cookies Property

Introduction

The Request.Cookies property can be used to retrieve the values stored in the client’s cookie. Cookies are small files, which stores information on the clients system. Nowadays cookies are used nearly on every commercial website. Websites like Hotmail, Yahoo and even TopXML uses cookies. Some websites like GMail doesn’t even work if you have cookies disabled. These mentioned websites uses cookies to store the username and password in a cookie, so that each time you visit the website, you don’t need to login again. This property takes 2 parameters. The first one “Name” is always used and cannot be avoided. It is the name of the cookie, which is required to retrieve the value. The second one is “Key”, which is optional and used to retrieve sub keys. Along with the cookie name you can use the “HasKeys” attribute to verify if the cookie contains any keys.

Example

In the following example I am first using the Response object to set two cookies. After that I use the Request object to retrieve the values.

<%

            ' Set two cookies with some values

            Response.Cookies("Username") = "Sonu"

            Response.Cookies("Password") = "XXXXXXXXXXXXXX"

            ' Retrieve the value from those cookies 

            Response.Write "UserName: " & Request.Cookies("Username") & "<br/>"

            Response.Write "Password: " & Request.Cookies("Password")

%>

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

A great opportunity to Digital Vide
here is a greate opportunity as a S
A great opportunity as a Network En
A Greate Opportunituy as a SQL Deve
An immediate job opportunity as a B

View all Jobs (Add yours)
View all CV (Add yours)



Information Online

swimming pool contractor
chicago web site design
conference calling
Domain Names
online fax service
Diesel sunglasses
answering service


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP