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. WPF
  4. Getting session ID with SL2 !

Getting session ID with SL2 !

Scheduled Pinned Locked Moved WPF
7 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.
  • M Offline
    M Offline
    Mohammad Dayyan
    wrote on last edited by
    #1

    Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.

    M B 2 Replies Last reply
    0
    • M Mohammad Dayyan

      Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      I don't know what "user session ID" you're referring to, but I'll answer yes and yes. Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      M 1 Reply Last reply
      0
      • M Mark Salsbery

        I don't know what "user session ID" you're referring to, but I'll answer yes and yes. Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        M Offline
        M Offline
        Mohammad Dayyan
        wrote on last edited by
        #3

        Mark Salsbery wrote:

        I don't know what "user session ID" you're referring to,

        Well, I know a session ID from PHP that we could get it with session_id() function. How many session ids do we have in SL2 ?

        M 1 Reply Last reply
        0
        • M Mohammad Dayyan

          Mark Salsbery wrote:

          I don't know what "user session ID" you're referring to,

          Well, I know a session ID from PHP that we could get it with session_id() function. How many session ids do we have in SL2 ?

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Mohammad Dayyan wrote:

          How many session ids do we have in SL2 ?

          None. Session IDs are a server side thing - Silverlight is a client technology. You can use ASP.NET sessions through ASP.NET/WCF services... Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          M 1 Reply Last reply
          0
          • M Mark Salsbery

            Mohammad Dayyan wrote:

            How many session ids do we have in SL2 ?

            None. Session IDs are a server side thing - Silverlight is a client technology. You can use ASP.NET sessions through ASP.NET/WCF services... Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            M Offline
            M Offline
            Mohammad Dayyan
            wrote on last edited by
            #5

            Thanks Mark .

            Mark Salsbery wrote:

            You can use ASP.NET sessions through ASP.NET/WCF services...

            I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor. Can we get a something in SL2? Is there an unique thing in Client side that I could get it with SL2 ? Would appreciate for helping.

            M 1 Reply Last reply
            0
            • M Mohammad Dayyan

              Thanks Mark .

              Mark Salsbery wrote:

              You can use ASP.NET sessions through ASP.NET/WCF services...

              I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor. Can we get a something in SL2? Is there an unique thing in Client side that I could get it with SL2 ? Would appreciate for helping.

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Mohammad Dayyan wrote:

              I'm working just with SL2 (client side) and I wanna get an unique thing for every visitor.

              Silverlight runs on the client so it's already "unique". There's no concept of "visitor" on the client side. Mark

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              • M Mohammad Dayyan

                Hello everybody. Can we get user session ID with SilverLight 2 ? Is it possible at all ? Thank you.

                B Offline
                B Offline
                Braulio Dez
                wrote on last edited by
                #7

                You can inherit the session context in your WCF Services. Just use:

                [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
                public class MyService

                But remember you will be responsible as well to keep alive that session (maybe service ping every X minutes). HTH Braulio

                /// -------------------------      Braulio Díez      DBSchemaEditor.com      Free Silverlight based DB Schema Modeling Tool /// -------------------------

                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