R
Robert E. Flaherty
Working with ASP.NET 1.1 - C#
I have been attempting to locate all of reading and writing of session
variables into a class in its own file. The file contains:
using System;
using System.Collections;
using System.Web;
using System.Web.SessionState;
using System.Xml;
using System.Text;
using Microsoft.Win32;
namespace SessionVariablesClasses
{
public class SessionVariablesClass
{
I am getting the following error message:
c:\inetpub\wwwroot\OB_EEG_WhatIf\SessionVariables.cs(84): The name 'Session'
does not exist in the class or namespace
'SessionVariablesClasses.SessionVariablesClass'
on the following line of code:
try
{
_bnUserHasBeenValidated = Session["UserHasBeenValidated"].ToString();
}
catch
{
_bnUserHasBeenValidated = false;
}
I have been attempting to locate all of reading and writing of session
variables into a class in its own file. The file contains:
using System;
using System.Collections;
using System.Web;
using System.Web.SessionState;
using System.Xml;
using System.Text;
using Microsoft.Win32;
namespace SessionVariablesClasses
{
public class SessionVariablesClass
{
I am getting the following error message:
c:\inetpub\wwwroot\OB_EEG_WhatIf\SessionVariables.cs(84): The name 'Session'
does not exist in the class or namespace
'SessionVariablesClasses.SessionVariablesClass'
on the following line of code:
try
{
_bnUserHasBeenValidated = Session["UserHasBeenValidated"].ToString();
}
catch
{
_bnUserHasBeenValidated = false;
}