Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 87377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:23:36+00:00 2026-05-10T22:23:36+00:00

I have a custom security principal object which I set in the global.asax for

  • 0

I have a custom security principal object which I set in the global.asax for the current thread and all is well, no problems normally.

However, I’m just adding a dynamic image feature by having a page serve up the image and whenever that dynamic image page is loaded the System.Web.HttpContext.Current.Session is null in global.asax which prevents me from setting the security principal as normal and cascading problems from that point onwards.

Normally the Session is null in global.asax only once during a session at the start when the user logs in, afterwards it’s always available with this single exception.

The dynamic image page is loaded when the browser comes across an image tage in the original page i.e.

I’m guessing that this is some aspect of the fact that the browser is requesting that page without sending some credentials with it?

Any help would be greatly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:23:36+00:00Added an answer on May 10, 2026 at 10:23 pm

    John,

    I’m assuming you’re using an ashx handler for the handler. If so, be sure to derive from IRequiresSessionState for example:

    public class Images : IHttpHandler, System.Web.SessionState.IRequiresSessionState { } 

    If you’re not using an ashx can you describe what you mean by dynamic image page?

    Josh

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a custom javax.security.auth.spi.LoginModule used for web services as well as some web
I have set up spring security to intercept correctly and prompt user with custom
hi all i am using spring security 3.0.2 and i have one custom filter
I have a custom sharepoint web part that is throwing the following exception: System.Security.SecurityException:
I have a custom-authentication-provider defined in my Spring Security configuration. This class implements AuthenticationProvider,
I have a custom piece of Javascript which I would like to run on
I am loading an external class using a class-loader. I have a custom security
Currently I have a custom form login page in Spring Security 3 that sends
I have a custom user details object with first name part of it. Below
I have a custom [AuthenticationFilter] which simply redirects users that are not authorized to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.