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. Handling multiple sessions in an application

Handling multiple sessions in an application

Scheduled Pinned Locked Moved Web Development
helptutorial
3 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.
  • D Offline
    D Offline
    Dumb Programmer
    wrote on last edited by
    #1

    In my application I have a admin control panel where I can see the list of all the companies registerd with our system. We need to provide the option to login to any company from admin panel of the application. But at the same time I need to maintain a new session for each company i login to. For example If I login to company1 and i set the value of a session variable =1 and then i login to company2 and i set the value of a session variable = 2 then both of these values should be available in their respective sessions. Please help me out! Thanks in advance.

    H A 2 Replies Last reply
    0
    • D Dumb Programmer

      In my application I have a admin control panel where I can see the list of all the companies registerd with our system. We need to provide the option to login to any company from admin panel of the application. But at the same time I need to maintain a new session for each company i login to. For example If I login to company1 and i set the value of a session variable =1 and then i login to company2 and i set the value of a session variable = 2 then both of these values should be available in their respective sessions. Please help me out! Thanks in advance.

      H Offline
      H Offline
      HarryIsp2007
      wrote on last edited by
      #2

      If i can understand your idear i dier; Please Post again your idear and tell me more about that. Examplete databese you using, application, what do you want, what about secsion... more and more details...???????/

      1 Reply Last reply
      0
      • D Dumb Programmer

        In my application I have a admin control panel where I can see the list of all the companies registerd with our system. We need to provide the option to login to any company from admin panel of the application. But at the same time I need to maintain a new session for each company i login to. For example If I login to company1 and i set the value of a session variable =1 and then i login to company2 and i set the value of a session variable = 2 then both of these values should be available in their respective sessions. Please help me out! Thanks in advance.

        A Offline
        A Offline
        AlexeiXX3
        wrote on last edited by
        #3

        Sessions are kept automatically for each client connected, you only need to set a variable like session("VarName")=1 If someone else connects a new session willl be started

        Alexei Rodriguez

        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