Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.32 KB

Demo-session.md

File metadata and controls

36 lines (22 loc) · 1.32 KB

AZ-204 Demo: Azure Cache for Redis in Action

In the demo you will use session connector to the save users' values in Redis cache.

Before delivery:

  • Create Redis instance in Azure
  • Update Web.Config with your Redis instance parameters:

settings

  • For successful run demo customer networks should allowed communication to Redis.

  • Non-SSL port (6379) enabled

In class:

You will demonstrate who session values can be hosted in Redis (for scalability your application).

  1. Run the web project.
  2. Web site should be open automatically with start page.
  3. Copy the URL – it contains your session identifier. Next time you can return to your session by this identifier.
  4. Enter the test value and set the value in session. Click "Add to Session" to save the value.
  5. Click "Retrieve from…" to read the value from session.
  6. Stop debugger and close the Web browser.
  7. You can demonstrate the code of the page. It has simple call to Session["ModuleName"]

Web

  1. You can restart VS, IIS or whole computer.

  2. Run the project again and paste the URL you copy before. You will be able to return to your old session. (it use cookless session)

  3. Click on the button Retrieve from… to read the value from session (Redis).

Web