I am Having a User Class now i want to add that class to HTTPContext object so that each time i send a request I don't have to validate it
Add User session infomation to HTTPContext
228 Views Asked by user998609 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 SESSION
- Access property of an object of type [Model] in JQuery
- __PHP_Incomplete_Class Object even though class is included before session started
- Safari Extension not geting session Info
- Laravel: Locale Session: Controller gets Parameter to change it but it cant. U have to hardcode it
- Does OPEN SYMMETRIC KEY (SQL Server) remain in scope on a server farm?
- Superagent share session / cookie info with actual browser
- Session Destroyed on page refresh
- MVC Referencing strongly typed session objects on my view
- What is the best way to persist a global array in php?
- Error in indicies while unsetting Sessions
- Server side PHP session is not working in android
- Laravel - session data survives log-out/log-in, even for different users
- The page isn't redirecting properly when I logout
- Session array unset and delete row
- Validating a login using PHP
Related Questions in USERSESSION
- How can I manage a user session in Android using Facebook token?
- How to logoff a user when the workstation is locked?
- How to store sessions of a telegram bot user in my db
- php-fpm freeze user session on ffmpeg exec
- Parse Database not cleared on logout Android
- Keycloak user session (SP) not cleared on single logout (to external IDP)
- OAuth Custom Authorization Server doesn't work. Couldn't resolve the initial User session
- User session recordings showing misaligned website. How to fix it?
- AWS Cognito user-session data
- Add User session infomation to HTTPContext
- Flutter Application won't install on Xiomi, OnePlus, Vivo and user session is not maintained
- C# ActiveDirectory get PrincipalContext with "Rights"
- Logging log messages from different user session into different log files
- Can't set user session with Vue and Django
- React MSAL Library msal-react : Issue in persisting the login session in different user-policies B2C application
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?
ASP.NET has several state management approaches - you need to choose the one most suitable to your need, and then store your validated user credentials once only.
If you have a single server setup, and can't see the need for multiple servers / a web farm in the future, you could consider using ASP.NET Session State.
Session State uses in-process memory on the server - so if you are spreading requests to multiple servers, this approach won't work. You would then consider storing an authentication token in your database. You can have a mixture of the two - storing session state in the database.
Lastly, you could consider using ASP.NET Membership, which simplifies the job of creating and managing users, authentication, and authorization.