I had created a login form using MVC 5 No authentication template and connected with MS-SQL local Server, Now I need to verify the login status using session. I tried surfing about it but I can't able to find the optimal solution. So please some one help me to identify the optimal solution.
How to use session for verifying login in ASP .Net Core 2.0 by MVC (no authentication)
185 Views Asked by Jawahar05 At
1
There are 1 best solutions below
Related Questions in ASP.NET
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in ASP.NET-MVC-5
- Getting and passing MVC Model data to AngularJS controller
- How to fix the model to correctly use the MVC Foolproof library?
- Why do I have to publish MVC project twice?
- WebApi: Reading errors
- MVC route URL not containing parameter
- Checks not showing in the correct location
- Is there another way to unit test business logic in mvc
- Perform wildcard search of all (displayed) model fields in MVC?
- Identity 2.0 After Login go to Infinite Loop asp.net mvc 5
- How to define multiple partial Owin Startup classes and have them all run their code
- How to add asp.net mvc5 to visual studio express 2012 edition?
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Authenticate User for ASP.NET MVC from Sharepoint
- MVC5 Typeahead Feature
- Validation for EditorFor helper mvc5
Related Questions in ASP.NET-CORE-2.0
- Is possible to use third-party .dll (.Net Framework 2.0) with ASP.Net Core 2.0 project?
- Why is ASP.NET Core Identity 2.0 Authorize filter causing me to get a 404?
- How to Add an implementation of 'IDesignTimeDbContextFactory<DataContext>' to the project in asp.net-core-2.0
- Generating Roles in Startup.cs doesn't work anymore in .NET Core 2.0
- not getting any error when serilog is not able to insert data in sql server
- Can i use razor base web application in asp.net core 2.0.0 for authorization?
- The version of Microsoft.NET.Sdk used by this project is insufficient to support references to libraries targeting .NET Standard 1.5 or higher
- Token Based Authentication on Postman
- Can an ASP.NET Core 2.0 project be created without a Microsoft.AspNetCore.All package?
- How to use a razor page string variable in javascript? - show alert with C# string
- Can I use Bluemix Cloud Foundry Apps with dotnet core 2?
- Converting DataTable to JSON in ASP Core 2
- Nlog Error when writing to database, what is the correct config for Nlog in asp core 2?
- AspNet Core CookieAuthentication with injected SessionStore
- How do I get the claims from an openid access token in asp.net core?
Related Questions in ASP.NET-SESSION
- Storing ASP.NET Session across multiple SQL Server Databases
- Redis and Asp.Net session state - Timeouts with Eval
- ASP.NET session state provider in Azure
- DataServiceRequestException with TableStorageSessionStateProvider
- Reverse proxy in .NET Core Middleware “set-cookie” response does not set in browser and not showing in HttpResponseMessage
- Why am I not able to use session storage to store emails? (working on ASP.NET Core MVC)
- When user redirect to website after payment gateway all session data gets lost, we are using ASP.NET webform .NET 4.8 Framework
- Session Cookie Secure in ASP.NET MVC
- How can I get session variable from separate JavaScript file?
- Fetching session state without sending HTTP request from front end
- Asp.Net session not working in OnConnected method of Hub class of signalR
- ASP.NET_SessionId Request Cookie Not Secure?
- What is the best state management to store user search criterias
- Sharing Session between ASP.NET Forms and ASP.NET Core
- How to use session for verifying login in ASP .Net Core 2.0 by MVC (no authentication)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unless you are a security expert I would strongly advise that you don’t roll your own authentication.
Most of the documentation you will find on the web for authentication in an mvc app will be referencing asp identity. I would recommend using that unless you have a good reason not too.
Things like using
On controller actions
And using
To check if a user is logged in is all baked in.
No need to re-invent the wheel