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. Session in ASP.NET webservices

Session in ASP.NET webservices

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
3 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.
  • D Offline
    D Offline
    Den2Fly
    wrote on last edited by
    #1

    Hello buddies, I wana know what session is in ASP.NET webservices exactly is. I thought it is something like session in ASP.NET web application that holds variables related to a specified user who sends requests in a row but in my tests after a first method call that I set a session variablle and in the next call this variable returns null. Can u explain it for me? - Den 2 Fly --- "Art happens when you least expect it."

    P 1 Reply Last reply
    0
    • D Den2Fly

      Hello buddies, I wana know what session is in ASP.NET webservices exactly is. I thought it is something like session in ASP.NET web application that holds variables related to a specified user who sends requests in a row but in my tests after a first method call that I set a session variablle and in the next call this variable returns null. Can u explain it for me? - Den 2 Fly --- "Art happens when you least expect it."

      P Offline
      P Offline
      Pradeep Shamarao
      wrote on last edited by
      #2

      I had similar problems, may be this will help. Hope u have used this [WebMethod(EnableSession=true)] for your webmethods from the client side sometimes cookie collection has a problem try this before u call ur webservice method using System.Net; private CookieContainer cookies; Service1 testService = new Service1(); if (cookies==null) { cookies = new System.Net.CookieContainer(); } testService.CookieContainer = cookies; cool man

      D 1 Reply Last reply
      0
      • P Pradeep Shamarao

        I had similar problems, may be this will help. Hope u have used this [WebMethod(EnableSession=true)] for your webmethods from the client side sometimes cookie collection has a problem try this before u call ur webservice method using System.Net; private CookieContainer cookies; Service1 testService = new Service1(); if (cookies==null) { cookies = new System.Net.CookieContainer(); } testService.CookieContainer = cookies; cool man

        D Offline
        D Offline
        Den2Fly
        wrote on last edited by
        #3

        Yes it is solved Thank you ;-) --- "Art happens when you least expect it."

        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