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. The Lounge
  3. Programming Preferences

Programming Preferences

Scheduled Pinned Locked Moved The Lounge
asp-netoraclecomquestion
24 Posts 14 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.
  • R R Giskard Reventlov

    I always use Sessions (unless I'm trying to pass a huge object and then I'll just pass a reference to it instead).

    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

    D Offline
    D Offline
    Duke Carey
    wrote on last edited by
    #15

    mark merrens wrote:

    unless I'm trying to pass a huge object

    Perhaps more fiber in your diet would help

    R 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      Session or cookies, depending on how non-volatile I wanted the data. I generally try to make data last as long as the user is probably going to need it - except security info, which never leaves the server so is session limited at best.

      The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

      K Offline
      K Offline
      KRucker
      wrote on last edited by
      #16

      Keep in mind as well, for storing things in the session, you should not store objects that are not agile. (Agile objects being defined as... objects which do not maintain a reference to system resources, DB connections, open file handles, etc.). Session is also server dependant, if you use session to store objects, your server balancing must be a sticky balancing paradigm where once you hit a particular server, you remain with that server for the duration of the session.

      E 1 Reply Last reply
      0
      • D Duke Carey

        mark merrens wrote:

        unless I'm trying to pass a huge object

        Perhaps more fiber in your diet would help

        R Offline
        R Offline
        R Giskard Reventlov
        wrote on last edited by
        #17

        Thanks: I thought that was lost on everyone.

        "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

        1 Reply Last reply
        0
        • K KRucker

          Keep in mind as well, for storing things in the session, you should not store objects that are not agile. (Agile objects being defined as... objects which do not maintain a reference to system resources, DB connections, open file handles, etc.). Session is also server dependant, if you use session to store objects, your server balancing must be a sticky balancing paradigm where once you hit a particular server, you remain with that server for the duration of the session.

          E Offline
          E Offline
          ENOTTY
          wrote on last edited by
          #18

          +1 And, of course, make sure that objects are serializable (like proper DTOs), so "the next guy" (which is yours truly) doesn't want to come after you wielding an axe because stuffing ListItemCollections and GridViewRows into Session makes the StateServer unhappy . :mad:

          1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            Session or cookies, depending on how non-volatile I wanted the data. I generally try to make data last as long as the user is probably going to need it - except security info, which never leaves the server so is session limited at best.

            The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

            B Offline
            B Offline
            BrainiacV
            wrote on last edited by
            #19

            My previous employer banned session variables. They projected millions of users and didn't want all that memory floating around for 20 minutes before being released in the case the user was just there for a second. Their other argument was that they were going to a server farm and didn't want to keep the sessions coordinated. The place I'm at now does not have that much traffic so Sessions are fine with us. Our problem is sessions timing out and the users complaining they lost their work will they were yakking on the phone. We use cookies as well, but not as much. Some of our users are still terrified of cookies and disable them. In worst cases we stash the data in a database record and pull it back later. Not a good solution either.

            Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

            OriginalGriffO 1 Reply Last reply
            0
            • D dan sh

              If you have to move to web page 2 on a button click on page one, and page 2 totally depends on data input by user on page one, what approach would you choose to share data between the pages? Would it be session or cross-post or something else? Any why?

              "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

              S Offline
              S Offline
              StatementTerminator
              wrote on last edited by
              #20

              Actually, I normally prefer to use ViewState and stay on the same page, swapping elements on the button press. If I really have to pass data to a different page, I would normally use session variables. I don't like to use cookies for anything other than authentication, although they can be good for shopping carts and other things that you want to persist beyond the session.

              1 Reply Last reply
              0
              • B BrainiacV

                My previous employer banned session variables. They projected millions of users and didn't want all that memory floating around for 20 minutes before being released in the case the user was just there for a second. Their other argument was that they were going to a server farm and didn't want to keep the sessions coordinated. The place I'm at now does not have that much traffic so Sessions are fine with us. Our problem is sessions timing out and the users complaining they lost their work will they were yakking on the phone. We use cookies as well, but not as much. Some of our users are still terrified of cookies and disable them. In worst cases we stash the data in a database record and pull it back later. Not a good solution either.

                Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                OriginalGriffO Offline
                OriginalGriffO Offline
                OriginalGriff
                wrote on last edited by
                #21

                BrainiacV wrote:

                In worst cases we stash the data in a database record and pull it back later. Not a good solution either.

                Agreed - there is the fun of redundant DB entries then...and no built in mechanism to expire old data.

                The universe is composed of electrons, neutrons, protons and......morons. (ThePhantomUpvoter)

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                1 Reply Last reply
                0
                • D dan sh

                  If you have to move to web page 2 on a button click on page one, and page 2 totally depends on data input by user on page one, what approach would you choose to share data between the pages? Would it be session or cross-post or something else? Any why?

                  "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

                  R Offline
                  R Offline
                  RafagaX
                  wrote on last edited by
                  #22

                  I prefer session variables to share info between pages.

                  CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                  1 Reply Last reply
                  0
                  • R R Giskard Reventlov

                    I always use Sessions (unless I'm trying to pass a huge object and then I'll just pass a reference to it instead).

                    "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. Those who seek perfection will only find imperfection nils illegitimus carborundum me, me, me me, in pictures

                    K Offline
                    K Offline
                    KP Lee
                    wrote on last edited by
                    #23

                    The poster might not even be aware of the ASP.NET (ASP too? never learned that) paradigm and not know what a session is.

                    1 Reply Last reply
                    0
                    • D dan sh

                      If you have to move to web page 2 on a button click on page one, and page 2 totally depends on data input by user on page one, what approach would you choose to share data between the pages? Would it be session or cross-post or something else? Any why?

                      "Bastards encourage idiots to use Oracle Forms, Web Forms, Access and a number of other dinky web publishing tolls.", Mycroft Holmes[^]

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

                      I believe it depend of the size and sensitivity of the data you just passing. There are whole religions in favor every method. In my opinion a good programmer will never set a barrier just for the shake of 'preferences', but will learn the needs and deeds of the system an act in the best way...

                      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
                      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