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. (performacne) difference between Session and static class

(performacne) difference between Session and static class

Scheduled Pinned Locked Moved ASP.NET
questionregexperformancehelplearning
2 Posts 2 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.
  • S Offline
    S Offline
    Seishin
    wrote on last edited by
    #1

    Hi! what's the difference between using a static class (or class with singleton pattern) and holding non-static instance in Session. my question is mostly about application performance and resource usability, but besides that is there any other difference? creation time, dispose time?! thanks for any help! Seishin

    life is study!!!

    G 1 Reply Last reply
    0
    • S Seishin

      Hi! what's the difference between using a static class (or class with singleton pattern) and holding non-static instance in Session. my question is mostly about application performance and resource usability, but besides that is there any other difference? creation time, dispose time?! thanks for any help! Seishin

      life is study!!!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      There is a big difference that you have to consider first of all, and that is that the session variable is user specific, but a static variable is not.

      Despite everything, the person most likely to be fooling you next is yourself.

      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