Chapter 9 Flashcards
____ cookies remain available only for the current browser session.
Temporary
The cookie property is created with a required ____ attribute.
name
You can use a(n) ____ to pass information, such as search criteria, from one web page to another.
query string
The ____ property of the Document object changes the origin of a document to its root domain name.
domain
____ refers to the writing of code in such a way that minimizes any intentional or accidental security issues.
Secure coding
To delete a cookie, you change the ____ property.
expires
You use the ____ property of the Document object to create cookies in name-value pairs.
cookie
The ____ property of the Location object contains a URL’s query or search parameters.
search
You create hidden form fields with the ____ element.
input
The most widespread way on the web today of storing state information on a user’s computer is using ____.
cookies
You can use special characters in your cookies if you use ____.
encoding
The ____ attribute determines the availability of a cookie to other web pages on a server.
path
The ____ attribute indicates that a cookie can only be transmitted across a secure Internet connection using HTTPS or another security protocol.
secure
The ____ attribute of the cookie property determines how long a cookie can remain on a client system before it is deleted.
expires
The built-in ____ function is used in JavaScript for encoding the individual parts of a URI.
encodeURIComponent()
To create a query string, you add a ____ immediately after a URL, followed by the query string.
?
HTTP was originally designed to be ____, which means that web browsers stored no persistent data about a visit to a website.
stateless
The ____ attribute is used for sharing cookies across multiple servers in the same domain.
domain
____ cookies remain available beyond the current browser session and are stored in a text file on a client computer.
Persistent
You separate individual name-value pairs within a query string using ____.
&
Also known as defensive coding
secure coding
Converts the Date object to a string, formatting it in Coordinated Universal Time
toUTCString
Temporarily stores data that needs to be sent to a server along with the rest of a form, but that a user does not need to see
hidden form field
Encrypts data and transfers it across a secure connection
SSL
The only required parameter of the cookie property
name attribute
Allows cookies to be shared across a server
path attribute
Consists of a single text string containing one or more pieces of information
query string
Converts special characters in the individual parts of a URI to their corresponding hexadecimal ASCII value, preceded by a percent sign
encodeURIComponent()
Restricts how JavaScript code in one window or frame accesses a web page in another window or frame on a client computer
same origin policy
Storage that remains until you run code to delete it
localStorage