Multiple levels of Session Persistence

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: Multiple levels of Session Persistence

    Phil,

    Stupid note perhaps but you do realize that doing this method of storing
    does not guarantee that all session are kept?
    - The memory version won't work in a webfarm scenario (guess you don't have
    that)
    - Memory only session data will get lost on for instance hardware/power
    failure.
    - Changes to the configuration files can also stop/start your app removing
    memory sessions

    This can all be perfectly acceptable but wanted to mention it anyway.

    Regards,
    Edwin Kusters
    Hot ITem Informatica

    "Phil S" <phil.scovis@hansen.NOSPAM.com> wrote in message
    news:OQGdOCiSDHA.2228@tk2msftngp13.phx.gbl...
    > I think that's what I'm going to end up doing, assuming there's no
    > configuration setting that will do it for me.
    >
    > "Victor Garcia Aprea [MVP]" <vga@NOobiesSPAM.com> wrote in message
    > news:#yLoj0ASDHA.3796@tk2msftngp13.phx.gbl...
    > > Hi Phil,
    > >
    > > I've written a "PersistentStorage" type for one of my clients. It works
    > > exactly like session but persist the data to a provided storage. It has
    a
    > > data provider model so you could add different storage targets where to
    > > persist the data. Currently I've only written a MSSQL provider but its
    > > working great. Basically its a type implementing IHttpModule that based
    on
    > > the current user id retrieves his/her previous session-data when a
    request
    > > comes in and saves the session-data (only if it was modified) when a
    > request
    > > ends.
    > >
    > > --
    > > Victor Garcia Aprea
    > > Microsoft MVP | ASP.NET
    > > Looking for insights on ASP.NET? Read my blog:
    > > [url]http://obies.com/vga/blog.aspx[/url]
    > > To contact me remove 'NOSPAM'. Please post all questions to the
    newsgroup
    > > and not by private mail.
    > >
    > > "Phil S" <phil.scovis.NoHormelMeatProducts@hansen.com> wrote in message
    > > news:%23WnHqk%23RDHA.1896@TK2MSFTNGP12.phx.gbl...
    > > > I know it's possible to set the config file to keep sessions either in
    > > > process or persist them.
    > > >
    > > > How would one go about implementing multiple layers of Session
    > > availability;
    > > > e.g.: Keep sessions in memory for X minutes, then maintain them out of
    > > > process for Y days, then abandon them.
    > > >
    > > > The ultimate goal here is that sessions never expire, but active
    > sessions
    > > > are kept on the stove, and old zombie sessions are put in the freezer.
    > > The
    > > > configuration file seems to allow for the stove or the freezer, but
    not
    > > > both.
    > > >
    > > > Any help is appreciated.
    > > >
    > > >
    > >
    > >
    >
    >

    Edwin Kusters Guest

  2. Similar Questions and Discussions

    1. filterFunction on multiple levels
      I am using filterFunction on a XMLListCollection to filter data. It works fine except it only filters the first level of data. Is there someway to...
    2. #25551 [Bgs->Opn]: Session data loss when accessing session from multiple windows.
      ID: 25551 User updated by: brett at realestate-school dot com Reported By: brett at realestate-school dot com -Status: ...
    3. #25551 [NEW]: Session data loss when accessing session from multiple windows.
      From: brett at realestate-school dot com Operating system: Linux - Red Hat PHP version: 4.3.1 PHP Bug Type: Session related...
    4. Session Variables Persistence
      If the browser is loading the file from the local cache, then it is not going back to the server, so no ASP code is being run on the server to...
    5. Websphere session persistence gets "protocol violation" using oracle jdbc driver
      Hi, We use oracle (8.1.7) as the session persistence database for our websphere 3.5.4 application server. After 15 min of running a stress test,...
  3. #2

    Default Re: Multiple levels of Session Persistence

    Thanks for the heads up..
    Actually, I had thought of this, but for the present, we are merely
    concerned with not having people time out in normal usage, such as taking a
    potty break in the middle of using the site. We'll probably end up with
    some kind of session server to handle short-term state management.


    "Edwin Kusters" <NOSPAMeksnews@xs4all.nl> wrote in message
    news:uM##kplSDHA.212@TK2MSFTNGP10.phx.gbl...
    > Phil,
    >
    > Stupid note perhaps but you do realize that doing this method of storing
    > does not guarantee that all session are kept?
    > - The memory version won't work in a webfarm scenario (guess you don't
    have
    > that)
    > - Memory only session data will get lost on for instance hardware/power
    > failure.
    > - Changes to the configuration files can also stop/start your app removing
    > memory sessions
    >
    > This can all be perfectly acceptable but wanted to mention it anyway.
    >
    > Regards,
    > Edwin Kusters
    > Hot ITem Informatica
    >
    > "Phil S" <phil.scovis@hansen.NOSPAM.com> wrote in message
    > news:OQGdOCiSDHA.2228@tk2msftngp13.phx.gbl...
    > > I think that's what I'm going to end up doing, assuming there's no
    > > configuration setting that will do it for me.
    > >
    > > "Victor Garcia Aprea [MVP]" <vga@NOobiesSPAM.com> wrote in message
    > > news:#yLoj0ASDHA.3796@tk2msftngp13.phx.gbl...
    > > > Hi Phil,
    > > >
    > > > I've written a "PersistentStorage" type for one of my clients. It
    works
    > > > exactly like session but persist the data to a provided storage. It
    has
    > a
    > > > data provider model so you could add different storage targets where
    to
    > > > persist the data. Currently I've only written a MSSQL provider but its
    > > > working great. Basically its a type implementing IHttpModule that
    based
    > on
    > > > the current user id retrieves his/her previous session-data when a
    > request
    > > > comes in and saves the session-data (only if it was modified) when a
    > > request
    > > > ends.
    > > >
    > > > --
    > > > Victor Garcia Aprea
    > > > Microsoft MVP | ASP.NET
    > > > Looking for insights on ASP.NET? Read my blog:
    > > > [url]http://obies.com/vga/blog.aspx[/url]
    > > > To contact me remove 'NOSPAM'. Please post all questions to the
    > newsgroup
    > > > and not by private mail.
    > > >
    > > > "Phil S" <phil.scovis.NoHormelMeatProducts@hansen.com> wrote in
    message
    > > > news:%23WnHqk%23RDHA.1896@TK2MSFTNGP12.phx.gbl...
    > > > > I know it's possible to set the config file to keep sessions either
    in
    > > > > process or persist them.
    > > > >
    > > > > How would one go about implementing multiple layers of Session
    > > > availability;
    > > > > e.g.: Keep sessions in memory for X minutes, then maintain them out
    of
    > > > > process for Y days, then abandon them.
    > > > >
    > > > > The ultimate goal here is that sessions never expire, but active
    > > sessions
    > > > > are kept on the stove, and old zombie sessions are put in the
    freezer.
    > > > The
    > > > > configuration file seems to allow for the stove or the freezer, but
    > not
    > > > > both.
    > > > >
    > > > > Any help is appreciated.
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Phil S Guest

  4. #3

    Default Re: Multiple levels of Session Persistence

    Why not just make the session timeout longer?

    --
    John Saunders
    Internet Engineer
    [email]john.saunders@surfcontrol.com[/email]


    "Phil S" <phil.scovis@hansen.NOSPAM.com> wrote in message
    news:u32evEmSDHA.1072@TK2MSFTNGP10.phx.gbl...
    > Thanks for the heads up..
    > Actually, I had thought of this, but for the present, we are merely
    > concerned with not having people time out in normal usage, such as taking
    a
    > potty break in the middle of using the site. We'll probably end up with
    > some kind of session server to handle short-term state management.
    >
    >
    > "Edwin Kusters" <NOSPAMeksnews@xs4all.nl> wrote in message
    > news:uM##kplSDHA.212@TK2MSFTNGP10.phx.gbl...
    > > Phil,
    > >
    > > Stupid note perhaps but you do realize that doing this method of storing
    > > does not guarantee that all session are kept?
    > > - The memory version won't work in a webfarm scenario (guess you don't
    > have
    > > that)
    > > - Memory only session data will get lost on for instance hardware/power
    > > failure.
    > > - Changes to the configuration files can also stop/start your app
    removing
    > > memory sessions
    > >
    > > This can all be perfectly acceptable but wanted to mention it anyway.
    > >
    > > Regards,
    > > Edwin Kusters
    > > Hot ITem Informatica
    > >
    > > "Phil S" <phil.scovis@hansen.NOSPAM.com> wrote in message
    > > news:OQGdOCiSDHA.2228@tk2msftngp13.phx.gbl...
    > > > I think that's what I'm going to end up doing, assuming there's no
    > > > configuration setting that will do it for me.
    > > >
    > > > "Victor Garcia Aprea [MVP]" <vga@NOobiesSPAM.com> wrote in message
    > > > news:#yLoj0ASDHA.3796@tk2msftngp13.phx.gbl...
    > > > > Hi Phil,
    > > > >
    > > > > I've written a "PersistentStorage" type for one of my clients. It
    > works
    > > > > exactly like session but persist the data to a provided storage. It
    > has
    > > a
    > > > > data provider model so you could add different storage targets where
    > to
    > > > > persist the data. Currently I've only written a MSSQL provider but
    its
    > > > > working great. Basically its a type implementing IHttpModule that
    > based
    > > on
    > > > > the current user id retrieves his/her previous session-data when a
    > > request
    > > > > comes in and saves the session-data (only if it was modified) when a
    > > > request
    > > > > ends.
    > > > >
    > > > > --
    > > > > Victor Garcia Aprea
    > > > > Microsoft MVP | ASP.NET
    > > > > Looking for insights on ASP.NET? Read my blog:
    > > > > [url]http://obies.com/vga/blog.aspx[/url]
    > > > > To contact me remove 'NOSPAM'. Please post all questions to the
    > > newsgroup
    > > > > and not by private mail.
    > > > >
    > > > > "Phil S" <phil.scovis.NoHormelMeatProducts@hansen.com> wrote in
    > message
    > > > > news:%23WnHqk%23RDHA.1896@TK2MSFTNGP12.phx.gbl...
    > > > > > I know it's possible to set the config file to keep sessions
    either
    > in
    > > > > > process or persist them.
    > > > > >
    > > > > > How would one go about implementing multiple layers of Session
    > > > > availability;
    > > > > > e.g.: Keep sessions in memory for X minutes, then maintain them
    out
    > of
    > > > > > process for Y days, then abandon them.
    > > > > >
    > > > > > The ultimate goal here is that sessions never expire, but active
    > > > sessions
    > > > > > are kept on the stove, and old zombie sessions are put in the
    > freezer.
    > > > > The
    > > > > > configuration file seems to allow for the stove or the freezer,
    but
    > > not
    > > > > > both.
    > > > > >
    > > > > > Any help is appreciated.
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    John Saunders Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139