SQL Session State

Last post 05-14-2008 10:02 PM by hendrasan. 3 replies.

Sort Posts:

  • SQL Session State

    05-14-2008, 3:02 AM
    • Loading...
    • hendrasan
    • Joined on 05-05-2008, 9:56 PM
    • Posts 5

    Is it possible to get the value of the session from sql server ?

    Hendra
    http://hendrasantoso.blogspot.com/
  • Re: SQL Session State

    05-14-2008, 3:21 AM
    • Loading...
    • satalaj
    • Joined on 11-28-2007, 12:41 AM
    • Pune
    • Posts 872

    yes you need to set session state mode as SQLSERVER

    <configuration>
       <system.web>
          <sessionState mode="SQLServer"
            sqlConnectionString="data source= ServerName;
            user id=User;password=Password"
            cookieless="true"
            timeout="20" />
       </system.web>
    </configuration>

    http://support.microsoft.com/kb/323262
    Satalaj

  • Re: SQL Session State

    05-14-2008, 3:45 AM
    • Loading...
    • hendrasan
    • Joined on 05-05-2008, 9:56 PM
    • Posts 5

    Dear Satalaj ,

    Im sorry that maybe my question wasnt clear enough
    what i realy want to ask is :
    how can i get the value of the session which is still alive on the server.


    for example in my webapplication have a session called session("username")
    than how can i get all session("username") of the client that currently using my webapp


    correct me if im wrong, isnt it if youre using session state mode as SQLSERVER
    the session value were stored at the sql server ??

    all ican see in my database were only two tables ASPStateTempSessions, ASPStateTempApplications
    and i dont know what the use of those tables

    Thanks :)

    Hendra
    http://hendrasantoso.blogspot.com/
  • Re: SQL Session State

    05-14-2008, 10:02 PM
    • Loading...
    • hendrasan
    • Joined on 05-05-2008, 9:56 PM
    • Posts 5

    anyone ? Tongue Tied

    Hendra
    http://hendrasantoso.blogspot.com/
Page 1 of 1 (4 items)