PrepAway - Latest Free Exam Questions & Answers

Which approach should you recommend?

You are designing a RESTful ASP.NET Web application.
You have the following requirements:
– Retain state between requests.
– Associate a request with a session.
– Do not require the use of cookies.
You need to ensure that your design meets the requirements.
Which approach should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Disable ViewState by using the @ Page directive.

B.
Configure the application to use cookieless session state.

C.
Configure the application to use the InProc session state mode.
D. Register a custom PageAdapter class that providesa SessionStatePagePersister.

Explanation:
By default, ASP.NET uses cookies to identify clients with a specific session. If clients do not support cookies,
you can choose cookieless sessions instead. However, cookieless sessions add the session ID to the page
URL, which can cause a variety of issues.


Leave a Reply