Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp.net Session state

Asp.net Session state

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-nethelp
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Otekpo Emmanuel
    wrote on last edited by
    #1

    Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!

    Kornfeld Eliyahu PeterK Richard DeemingR Z S 4 Replies Last reply
    0
    • O Otekpo Emmanuel

      Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      Before answer you let me ask some questions... Why keep the session alive? Do you know how much it costs - in resources - to keep all your sessions alive? Did you checked all the alternatives to live-forever-session? I believe that after answering these question you will no ask the original question anymore...

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      1 Reply Last reply
      0
      • O Otekpo Emmanuel

        Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        The timer control relies on javascript, so if javascript is not enabled, the timer won't work either.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        O 1 Reply Last reply
        0
        • O Otekpo Emmanuel

          Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!

          Z Offline
          Z Offline
          ZurdoDev
          wrote on last edited by
          #4

          1. As already pointed out the timer control will use javascript. The only way to send something back to the server without a full postback is to use javascript so you'll have to. 2. Every 5 seconds? That is way overkill. If your session is set to the default of 30 minutes then send a keep-alive message every 20 or 25 minutes, not every 5 seconds.

          There are only 10 types of people in the world, those who understand binary and those who don't.

          O 1 Reply Last reply
          0
          • Z ZurdoDev

            1. As already pointed out the timer control will use javascript. The only way to send something back to the server without a full postback is to use javascript so you'll have to. 2. Every 5 seconds? That is way overkill. If your session is set to the default of 30 minutes then send a keep-alive message every 20 or 25 minutes, not every 5 seconds.

            There are only 10 types of people in the world, those who understand binary and those who don't.

            O Offline
            O Offline
            Otekpo Emmanuel
            wrote on last edited by
            #5

            Ok. Get it now. Thanks alot!

            Z 1 Reply Last reply
            0
            • O Otekpo Emmanuel

              Ok. Get it now. Thanks alot!

              Z Offline
              Z Offline
              ZurdoDev
              wrote on last edited by
              #6

              You're welcome. :)

              There are only 10 types of people in the world, those who understand binary and those who don't.

              1 Reply Last reply
              0
              • Richard DeemingR Richard Deeming

                The timer control relies on javascript, so if javascript is not enabled, the timer won't work either.


                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                O Offline
                O Offline
                Otekpo Emmanuel
                wrote on last edited by
                #7

                Ok. Get it now. Thanks alot!

                1 Reply Last reply
                0
                • O Otekpo Emmanuel

                  Good day friends. I need an advice in this issue. In order to keep section state alive, i used timer control to be downloading images every 5 secs. I wanted to use javascript but something came to my mind that what if javascript is not enabled in the client's device, so i had to use timer control as alternative. Now my question is, is it a good practice to use timer control in keeping section state alive and is it good for web applications? Any advice is welcome. Thanks!

                  S Offline
                  S Offline
                  sankarsan parida
                  wrote on last edited by
                  #8

                  Increase session timelength and change it's mode

                  Sankarsan Parida

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups