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?

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?

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 provides a 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 0

Your email address will not be published. Required fields are marked *