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. Custom Session

Custom Session

Scheduled Pinned Locked Moved C#
csharpasp-netdatabasesql-serversysadmin
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
    satsumatable
    wrote on last edited by
    #1

    Hi Is there any way to configure ASP.Net, C# application to store all the session values into custom storage. Session["UserName"] = "XXX"; this has to call my own adopter and send the values rather than In-Memory/SQL Server. Thanks

    E 1 Reply Last reply
    0
    • S satsumatable

      Hi Is there any way to configure ASP.Net, C# application to store all the session values into custom storage. Session["UserName"] = "XXX"; this has to call my own adopter and send the values rather than In-Memory/SQL Server. Thanks

      E Offline
      E Offline
      Ennis Ray Lynch Jr
      wrote on last edited by
      #2

      I don't know if this will address your question or not but it is bad practice to directly use the Session object in code. By using a static wrapper class you can have all calls to session centralized as well as strongly and statically typed (a good thing). You then have the freedom to completely control the underlying implementation. The link below addresses a custom provider. http://msdn.microsoft.com/en-us/library/ms178587.aspx[^]

      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane

      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