Null Session values in IHttpHandler

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:
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 :p

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. . . .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top