L
lapin
I'm trying to get access to session variables from an
IHttpHandler
class. In several places I've seen the solution posted as
in this
message:
That's great, but I cannot figure out how to "implement the
IRequiresSessionState interface. Seems I need a "Public
Interface irequiressessionstate" statement somewhere, but
I cannot get this to complile. What's missing?
Current code:
Imports System.Web
Imports System.Xml
Imports System.Xml.Xsl
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.SessionState
Public Class MakeData
Implements IHttpHandler
Public ReadOnly Property IsReusable() As Boolean _
Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
Public Interface irequiressessionstate (?????)
Public Sub ProcessRequest(ByVal context As
HttpContext) Implements
IHttpHandler.ProcessRequest
Dim sDetailDeviceID As String = ""
etc. . . .
IHttpHandler
class. In several places I've seen the solution posted as
in this
message:
If you define your own custom HttpHandler, you need to
import the
System.Web.SessionState namespace, you
need it to implement the IRequiresSessionState interface
if you want it to
have a session instance
That's great, but I cannot figure out how to "implement the
IRequiresSessionState interface. Seems I need a "Public
Interface irequiressessionstate" statement somewhere, but
I cannot get this to complile. What's missing?
Current code:
Imports System.Web
Imports System.Xml
Imports System.Xml.Xsl
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.SessionState
Public Class MakeData
Implements IHttpHandler
Public ReadOnly Property IsReusable() As Boolean _
Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property
Public Interface irequiressessionstate (?????)
Public Sub ProcessRequest(ByVal context As
HttpContext) Implements
IHttpHandler.ProcessRequest
Dim sDetailDeviceID As String = ""
etc. . . .