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. Re-read from database or store in a session variable?

Re-read from database or store in a session variable?

Scheduled Pinned Locked Moved ASP.NET
databasequestion
3 Posts 3 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.
  • J Offline
    J Offline
    Jay Royall
    wrote on last edited by
    #1

    Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.

    P A 2 Replies Last reply
    0
    • J Jay Royall

      Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.

      P Offline
      P Offline
      padmanabhan N
      wrote on last edited by
      #2

      you can store the information in caching and retrive it

      Padmanabhan

      1 Reply Last reply
      0
      • J Jay Royall

        Hi, need a little bit of advice. I have a web app which consists of a user profile page, amongst others. When the user profile page is accessed I read the user's information into an object from a database and display it. If the user posts back on that page should I be re-reading the user's information each time or store the user object in a session variable? Any advice is appreciated, thanks.

        A Offline
        A Offline
        Anil Chauhan
        wrote on last edited by
        #3

        You should store it in Session variable. Regards, _Anil

        jhgdgf

        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