简体   繁体   中英

Using ASP.NET Forms Authentication and PostgreSQL

I have an ASP.NET C# WebForms application built using the following:

  • Mono
  • Apache
  • PostgreSql
  • NPGSQL
  • OS Linux

Because those platforms are used a custom user/role management system was written for the application login.

One of the features we need is to redirect a visitor if they try to access a page if they have not logged in to the application.

I have been researching the Forms Authentication

As expected almost everything I find is using the ASP.NET built-in tools that are prominently used in Windows environments. ( Which is not necessarily the case I have in my application )

My question is can Forms Authentication be used in my scenario? Or is there another approach I could take to accomplish the same result.

PLEASE NOTE: Before marking this as a possible duplicate question notice my environment is not the normal ASP.NET stack.

Using [Sessions] is my solution.

This StackoverFlow question gives a really good explanation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM