Results 1 to 6 of 6

Thread: enableSessionState ? where's it set

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Outer space
    Posts
    97

    enableSessionState ? where's it set

    i know this is more of an asp.net Q but i thought it might get answered a little quicker here ....

    where's this variable set ?

    many thanks
    optimus

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Taken from another post:

    Make sure that you have set the Enable Session Set to
    true (IIS:WEbSiteefault
    Wesite:<yourApplication>:<properties>irectory
    tab:Configuration:Options tab on the Application
    Configuration dialog.

  3. #3
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    Hey! Those smileys should be "D"s.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Outer space
    Posts
    97
    cheers m8 but we've tried setting this in IIS and it seems to be default but .net is still picking the value up as being false ? .... u don't know a way of doing this programatically in code ?

    because when we've edited the page directive it returns and unknown attribute error

    ie.
    <% Page Language="vb" enableSessionState="True"%>

    and when the enableSessionState attribute is added to the web.config as ...

    <system.web>
    <%enableSessionState="True"%>
    </system.web>

    the project will not build

    fast running out of ideas .... any help greatly appreciated !

    optimus

  5. #5
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    I'm not sure if this matters, but in C#, settings the attribute is case-sensitive. This is what I use:

    Code:
    EnableSessionState="false"
    Worth a shot..

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    Outer space
    Posts
    97
    cheers m8 ill give it a go ..... on one of the microsoft websites it says it all in uppercase but instead of saying

    ENABLESESSIONSTATE="TRUE"

    it says ....

    ENABLESESSIONSSTATE="TRUE"

    on another part of the microsoft site it says ....

    enableSessionState="True"

    and on others it tells u to do it through IIS .... very confusing if you ask me

    even the error message reads somthing like

    EnableSessionState needs to be set to true .... in either a configuration file or Internet Service Manager


    love the way the point you in the right direction all the time

    ie.
    in a configuration file .... but which f&@kin configuation file ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width