Session Variables Error

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
 
J

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!
 

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

Top