Application needs to work in single and multiple webserver environment

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

  1. #1

    Default Re: Application needs to work in single and multiple webserver environment

    inproc sessions won't work on a webfarm.

    if you use sqlserver mode, you can schedule (thru sqlagent) a stored proc to
    run that deletes old sessions.



    "sudha" <sudha_s@mailcity.com> wrote in message
    news:030d01c344b8$46177700$a301280a@phx.gbl...
    > Hi,
    > I have my search application which displays results based
    > on query given by user. I provided pagination for this
    > application so that user can navigate through the search
    > results. The first time user queries the application, it
    > creates an xml file on the webserver and uses this xml
    > file to display records whenever user clicks next or prev
    > buttons instead of getting the records from the database.
    > When the user session times out this xml file gets deleted
    > using Session_End event in global.ascx file as I am using
    > Session state mode="InProc". The whole application works
    > fine if we use single webserver. But, the problem arises
    > if the same application needs to run in clustered web
    > farm as the user may not be redirected to same server
    > where the xml file gets created as he navigates through
    > the search results. I also need to use Session state
    > mode="SQL Server" to store the session state in clustered
    > web farm environment. The session_end event only works
    > in "InProc" mode. How do I delete the xml file that gets
    > created on the server in multiple webserver environment?
    > Any suggestions?
    >
    > Thanks in advance

    bruce barker Guest

  2. Similar Questions and Discussions

    1. Flex 2.0 Environment - will it work
      My environment includes an Oracle db server, a Microsoft IIS server (ASP) and a Sun One server (JSP). Adding a cf or flex server is not an option....
    2. Multiplayer development: Multiple instances of the Flashdevelopment environment (DE)
      :music; This one is actually for the developers of Flash: is it possible to run multiple instances of Flash? This will help so much in developing...
    3. HELP! Logon dll won't work in ASP on the webserver.
      Hi, all I wrote a dll with delphi using Windows API Logonuser and NetUserChangePassword which is called to impersonate a user from ASP. It's...
    4. How to implement Multiple Login Pages in a single Web Application
      Hello I have a web application in which i m ineed of implementing multiple login pages with the help of forms based Authentication. on the user...
    5. Is there a way to assign multiple variables a single value on a single line?
      i tried $f1, $f2, $f3 = '1'; and list($f1, $f2, $f3) = 1; neither work... second obviously cuz its looking for an array on the right side,...
  3. #2

    Default Re: Application needs to work in single and multiple webserver environment

    Thanks bruce. But, Is creating a temporary xml file based
    on user session on the webserver in clustered web farm is
    a problem?
    >-----Original Message-----
    >inproc sessions won't work on a webfarm.
    >
    >if you use sqlserver mode, you can schedule (thru
    sqlagent) a stored proc to
    >run that deletes old sessions.
    >
    >
    >
    >"sudha" <sudha_s@mailcity.com> wrote in message
    >news:030d01c344b8$46177700$a301280a@phx.gbl...
    >> Hi,
    >> I have my search application which displays results
    based
    >> on query given by user. I provided pagination for this
    >> application so that user can navigate through the search
    >> results. The first time user queries the application, it
    >> creates an xml file on the webserver and uses this xml
    >> file to display records whenever user clicks next or
    prev
    >> buttons instead of getting the records from the
    database.
    >> When the user session times out this xml file gets
    deleted
    >> using Session_End event in global.ascx file as I am
    using
    >> Session state mode="InProc". The whole application works
    >> fine if we use single webserver. But, the problem arises
    >> if the same application needs to run in clustered web
    >> farm as the user may not be redirected to same server
    >> where the xml file gets created as he navigates through
    >> the search results. I also need to use Session state
    >> mode="SQL Server" to store the session state in
    clustered
    >> web farm environment. The session_end event only works
    >> in "InProc" mode. How do I delete the xml file that gets
    >> created on the server in multiple webserver environment?
    >> Any suggestions?
    >>
    >> Thanks in advance
    >
    >
    >.
    >
    sudha Guest

  4. #3

    Default Re: Application needs to work in single and multiple webserver environment

    Hi,

    the xml file wont be accessible from all servers in the webfarm but if
    you will save the xml file for the first time on ant server on the farm
    it will be available for other request on the same machine.
    if you just want to save one copy of the temporary file you could do
    what other told you and keep it on state machine or SQL server.

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Natty Gur 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