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. WebServices

WebServices

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

    hi, I have created one webservice,in that webmethod i mentioned enablesession=false.eventhough i can able to access session values. this is the code public int applivar() { if (Session["name"] == null ) { Session["name"] = 1; } else { Session["name"] = (int)Session["name"] + 1; } return (int)Session["name"]; } REgards Jayabharathi

    A 1 Reply Last reply
    0
    • G geeeeeeeetha

      hi, I have created one webservice,in that webmethod i mentioned enablesession=false.eventhough i can able to access session values. this is the code public int applivar() { if (Session["name"] == null ) { Session["name"] = 1; } else { Session["name"] = (int)Session["name"] + 1; } return (int)Session["name"]; } REgards Jayabharathi

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      geeeeeeeetha wrote:

      in that webmethod i mentioned enablesession=false

      Where did you mentioned it ? In your given code block its not there. And If you don't want to enable session in web method, you do not need to mention the EnableSession=false, becuase this is the default value. Not Sure, why some one marked it as bad question !!

      Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Read my Latest Article :Mastering Debugging in VS 2010

      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