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. Go to subdomain

Go to subdomain

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • R Offline
    R Offline
    reza toorani
    wrote on last edited by
    #1

    hi ,there .i will go to subdomain from the root site .the root site have a session item which i need to it in the subdomain but when i go to the subdomain from root site not exist session items. help me . thanks

    M 1 Reply Last reply
    0
    • R reza toorani

      hi ,there .i will go to subdomain from the root site .the root site have a session item which i need to it in the subdomain but when i go to the subdomain from root site not exist session items. help me . thanks

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      ASP.NET cookies-based session doesn't work with subdomain.. but there are three workaround to achieve your goal. 1) Use "out-of-proc StateServer" instead of normal cookie-based session OR 2) Use the cookies instead of session... OR 3) As "=?Utf-8?B?RG91Zw==?=" suggested here, set the value of session in every page.. Response.Cookies["ASP.NET_SessionId"].Value = Session.SessionID; Response.Cookies["ASP.NET_SessionId"].Domain = ".mydomain.com"; Hope it helps.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      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