Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

session-state

Disable Session state per-request in ASP.Net Web Api (ApiController)

September 4, 2022 by Magenaut

I have ApiControllers that access the session and by default has SessionState required. Therefore I am getting the requests serialized and would like to disable session state for specific requests.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api, session-state Leave a comment

Sharing sessions across applications using the ASP.NET Session State Service

September 3, 2022 by Magenaut

I am trying to share sessions between two web applications, both hosted on the same server. One is a .net 2.0 web forms application the other is as .net 3.5 MVC2 application.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, session-state Leave a comment

Disable Session state per-request in ASP.Net MVC

September 3, 2022 by Magenaut

I am creating an ActionResult in ASP.Net MVC to serve images. With Session state enabled, IIS will only handle one request at a time from the same user. (This is true not just in MVC.)

Categories ASP.NET, Q&A Tags actionresult, asp.net, asp.net-mvc, asynchronous, session-state Leave a comment

Web app blocked while processing another web app on sharing same session

September 3, 2022 by Magenaut

Deployed two WebApplications in IIS namely /HRMS, /TravelDesk. Both WebApps are sharing session via AspState, the config information are

Categories ASP.NET, Q&A Tags asp.net, c#, session, session-state Leave a comment

Can I access session state from an HTTPModule?

September 3, 2022 by Magenaut

I could really do with updating a user’s session variables from within my HTTPModule, but from what I can see, it isn’t possible.

Categories ASP.NET, Q&A Tags asp.net, httpmodule, session-state Leave a comment

Generating a new ASP.NET session in the current HTTPContext

September 2, 2022 by Magenaut

As a result of a penetration test against some of our products in the pipeline, what looked to be at the time an ‘easy’ problem to fix is turning out to be a toughy.

Categories ASP.NET, Q&A Tags asp.net, httpsession, session-state, sessionid Leave a comment

Trying to make Web Method Asynchronous

September 2, 2022 by Magenaut

The project I am currently working on involves MS SQL Server and ASP.net Web Services that use Session variables. Apparently this causes a client’s calls to execute in a sequential manner. I want to make sure that these methods execute asynchronously.

Categories ASP.NET, Q&A Tags asp.net, session-state, web-services, webmethod Leave a comment

What is the difference between SessionState and ViewState?

September 2, 2022 by Magenaut

What is the difference between SessionState and ViewState in ASP.NET?

Categories ASP.NET, Q&A Tags asp.net, session-state, viewstate Leave a comment

List all active ASP.NET Sessions

September 2, 2022 by Magenaut

How can I list (and iterate through) all current ASP.NET sessions?

Categories ASP.NET, Q&A Tags asp.net, session, session-state Leave a comment

In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?

September 2, 2022 by Magenaut

Both Session.Clear() and Session.Abandon() get rid of session variables. As I understand it, Abandon() ends the current session, and causes a new session to be created thus causing the End and Start events to fire.

Categories ASP.NET, Q&A Tags .net, asp.net, session, session-state Leave a comment
Older posts
Page1 Page2 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress