Skip to content

riganti/dotvvm-samples-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Using Session and Forms Authentication with DotVVM

This sample demonstrates using ASP.NET Session, HttpContext cookies and Forms Authentication with DotVVM.

This sample is applicable only for the OWIN version of DotVVM. We do not recommend using any of these features in new apps. This scenario is useful especially when you try to modernize old ASP.NET Web Forms applications using DotVVM or use DotVVM in a Web Forms app.

Prerequisites

How to run the sample

  1. Open the GitHub repo in Visual Studio or git clone https://github.com/riganti/dotvvm-samples-session.git

  2. Open src/DotvvmSessionSample.sln

  3. Right-click the DotvvmSessionSample project and select View > View in Browser

What you can learn in the sample


About the sample

The sample shows the necessary configuration in Startup.cs (enabling session state behavior and registering a custom cookie manager that tells DotVVM to write the cookies to the HttpContext cookie container instead of using the OWIN cookie container).

There is also a sample page that uses Forms Authentication - it has to be enabled in web.config using <authentication mode="Forms" />.


Other resources

About

A sample on using ASP.NET Session or HttpContext cookies in DotVVM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published