Session Variables Error

  • Thread starter Thread starter Jennifer
  • Start date Start date
J

Jennifer

I am trying to use Session Variables but am receiving the
following error.

System.Web.HttpException: Session state can only be used
when enableSessionState is set to true, either in a
configuration file or in the Page directive.

By default the enableSessionState is set to true. I have
manually tried setting the configuration file, page
directive and both, but still get the error. I have
checked the IIS and it says that they are enabled.

Any ideas would be very helpful!

Thanks,

Jennifer
 
Found out what I was doing...

I needed to move the setting mstrPassword equal to the
Session Variable to the Page Load instead of where I dim
the Module Level Variable.

Thanks!
 
Back
Top