Quiz 2 Flashcards
What is TLS/SSL?
TLS/SSL is an internet protocol that lets you transmit data over the internet using encryption. This prevents others from reading that data.
What is required to make use of TLS/SSL?
For TLS/SSL to work, both the browser and the server need an TLS/SSL certificate.
What is a certification authority?
A certification authority is an organization that certifies that websites belong to who they say they do.
What is the highest strength that SSL currently has available?
128-bit SSL is the highest SSL strength available.
Before you can use the HTTPS protocol, what must you do?
Before using the HTTPS protocol, you must first create a binding for it.
What do certificate problems potentially indicate?
Certificate problems can potentially indicate that the site you’re visiting is not authentic, or that it is attempting to intercept data that is being sent to it.
What are the two types of certificates? Compare and contrast.
The two types of certificates are single root and chained root. Single root certificates are from a single, trusted source, are stable, and are easy to install. Chained root certificates inherit another certificate; they are cheaper, but less stable and harder to install.
What is state view?
State view is how ASP.net handles passing values from one page and its control properties to another page, between executions.
How does state view work?
Whenever a page is posted back to the client, changes that have been made by the program to the properties and controls of the page are recorded and encoded in a string in a hidden field, called “_VIEWSTATE”.
Once the page is posted back to the server, ASP.net uses _VIEWSTATE to restore the page and its controls & properties.
What is the most important thing to remember about view state?
The most important thing to remember about view state is that it is not used to restore data that the user enters into controls (i.e. textboxes and such) unless that control is tied into a change event.
How does view state interact with data-bound controls?
A data-bound control that has view state enabled loses its binding when the page is reposted, instead using _VIEWSTATE to restore values.
What are two cases in which you might want to disable view state?
Two situations in which view state might best be disabled would be:
In any situation in which control properties might affect how the page is laid out after they are restored.
When the _VIEWSTATE gets so large that it impacts performance.
How would you disable view state for a control? An entire page? A whole application? How would you enable them?
To disable view state for a control, you would set a control’s EnableViewState property to False.
To disable view state for a page, you would set the page’s EnableViewState property to False.
To disable an entire application’s view state, you would set the EnableViewState attribute of the pages element within system.web to False.
How would you determine the size of a page’s view state?
To view the size of a page’s view state, you must first set the trace attribute of the page directive to true. Then scroll down to the control tree section of the trace output to see the size.
What is a cookie?
A cookie is a name/value pair that is stored on the client’s computer.
How is a cookie sent?
A cookie is sent by a web application to a browser via an HTTP response. Then, whenever a browser sends an HTTP request to the server, it attaches any appropriate cookies to the response.
How does ASP.net use cookies?
ASP.net uses cookies as a way to store the session ID for sessions.
What is the difference between a session cookie and a persistent cookie?
A session cookie is a cookie that’s kept in the browser’s memory and exists only until the browser session ends. A persistent cookie exists on the user’s hard disk and is retained until the cookie’s expiration date.
How is creating a persistent cookie different than a session cookie?
To create a session cookie, you simply state a name and value. To create a persistent cookie, you must also specify the Expires property with a date and time.
What is URL encoding? Why is it important?
URL encoding is when a query string is appended to a URL, which itself contains name/value pairs. These pairs can be used to pass information from one page of an application to another.