I read this post but it did not really help:
https://wisej.com/support/question/httpcontext-current-session-is-null
So – how can we share session variables with a .ASPX page ?
Actually I am using a .ASHX page as a handler to return pdf files to PDF.js – but I need to check a session variable to make sure the user id logged in or i risk exposing secure documents to the web.
When I try to use ImagingDB.PortalUser io_User = Application.HttpContext.Current.Session.LoggedInUser; it flags it as an error in Visual Studio.
So, how if any – is it possible to get to the WiseJ session in my own handler ?
Hi Edmond,
HttpContext.Current and the session are different things. The HttpContext is just the current context for the current request thread. The session is bound to the browser’s instance either through a cookie storing the id or a session item. Wisej used to use cookies but now uses a session item (in private browsing it still uses a cookie since session storage is disabled in the browser).
At the end it comes down to an id.
These are the options:
HTH
Please login first to submit.