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. I loose the session on the client side

I loose the session on the client side

Scheduled Pinned Locked Moved C#
help
4 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.
  • T Offline
    T Offline
    TheBeginner77
    wrote on last edited by
    #1

    i have an windows application that is a client for my web service ,where i use sessions to keep if someone is logged in ! but every time i call i new method from the client application , the web service does not remember that i had logged in just before to calle that methot! pls help .. Thanks!

    G 1 Reply Last reply
    0
    • T TheBeginner77

      i have an windows application that is a client for my web service ,where i use sessions to keep if someone is logged in ! but every time i call i new method from the client application , the web service does not remember that i had logged in just before to calle that methot! pls help .. Thanks!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You have to get the cookies that the server returns when you are logging in, and send them back to the server in every request for the server to be able to identify the session. --- b { font-weight: normal; }

      T 1 Reply Last reply
      0
      • G Guffa

        You have to get the cookies that the server returns when you are logging in, and send them back to the server in every request for the server to be able to identify the session. --- b { font-weight: normal; }

        T Offline
        T Offline
        TheBeginner77
        wrote on last edited by
        #3

        can i learn fast to work with cookies, if its simple i mean if i could make it in 10 minutes ...could u give me a simple example? if its not simple i will make it in a different way... -- modified at 7:10 Sunday 18th June, 2006

        B 1 Reply Last reply
        0
        • T TheBeginner77

          can i learn fast to work with cookies, if its simple i mean if i could make it in 10 minutes ...could u give me a simple example? if its not simple i will make it in a different way... -- modified at 7:10 Sunday 18th June, 2006

          B Offline
          B Offline
          Bogdan Damian
          wrote on last edited by
          #4

          You don't have to .net framework allready has the functionality for this. You just have to set the CookieContainer property of the client service with CookieContainer instance and also you must take care to use the same container on every call if you want to use the same session. damianbc

          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