Session Variables Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jennifer

    #1

    Session Variables Error

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

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

    By default the enableSessionSt ate 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

  • Jennifer

    #2
    Session Variables Error

    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!

    [color=blue]
    >-----Original Message-----
    >I am trying to use Session Variables but am receiving[/color]
    the[color=blue]
    >following error.
    >
    >System.Web.Htt pException: Session state can only be used
    >when enableSessionSt ate is set to true, either in a
    >configuratio n file or in the Page directive.
    >
    >By default the enableSessionSt ate 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
    >
    >.
    >[/color]

    Comment

    Working...