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. General Programming
  3. C#
  4. Session object

Session object

Scheduled Pinned Locked Moved C#
question
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.
  • S Offline
    S Offline
    SJ_Phoenix
    wrote on last edited by
    #1

    Does somebody know in which Dll and Namespace I can find the Session- Object (if there is any:~ )? thanks

    M H 2 Replies Last reply
    0
    • S SJ_Phoenix

      Does somebody know in which Dll and Namespace I can find the Session- Object (if there is any:~ )? thanks

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      Which Session do you mean? The one in ASP.NET? System.Web.SessionState Namespace ? Mazy
      "One who dives deep gets the pearls,the burning desire for realization brings the goal nearer." - Babuji

      1 Reply Last reply
      0
      • S SJ_Phoenix

        Does somebody know in which Dll and Namespace I can find the Session- Object (if there is any:~ )? thanks

        H Offline
        H Offline
        Heath Stewart
        wrote on last edited by
        #3

        If you actually read the documentation, you'd see that it's in the System.Web.dll assembly under the System.Web.SessionState namespace (as Mazdak mentioned). You can't simply just use it, though. It's bound to the current HttpContext for a user. You can get this from the HttpContext.Current property (returns the current HttpContext, the class which defines a Session property) and the Page class.

        Microsoft MVP, Visual C# My Articles

        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