Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.