Multiple sessions with own variable values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • patrick proes
    New Member
    • Dec 2011
    • 3

    Multiple sessions with own variable values

    I need to write an application which opens multiple browser windows and each window needs to be able to work with his own values for different variables without mixing up the values between the different windows.
    I did find already a lot on the net but nothing concrete I can use.
    To give a bit more info. A page for customer details need to be opened in a seperate browser window and from here the session variables need to be set for this specific customer. In an other window the same variables need to be set but with other variables for another customer.
    Thanks already for the help
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    A page for customer details need to be opened in a seperate browser window and from here the session variables need to be set for this specific customer.
    pass the session cookie for that user (usually automatically done by the browser)

    In an other window the same variables need to be set but with other variables for another customer.
    pass the session cookie for that user. if that’s not the same user as the one who opened the popup, you must change the session cookie manually (or remove it to start a new session).

    Comment

    • patrick proes
      New Member
      • Dec 2011
      • 3

      #3
      The user (of the application) who opens the new window is the same but the values in the different session variables is different. It's a tool which needs to be able te administer different customers

      Comment

      • sramineni
        New Member
        • Dec 2011
        • 5

        #4
        use $_post or $_get method.
        let me know you difficulty in using it.

        Comment

        • patrick proes
          New Member
          • Dec 2011
          • 3

          #5
          Originally posted by sramineni
          use $_post or $_get method.
          let me know you difficulty in using it.
          I did solve it by sending the customer id in the post but that's not what I hoped to do. I wanted to put some values in session variables to be able te use them. Now I get the data for that customer id out of the db and start using it then
          Next problem now is giving an array as a parameter and reuse it then out of the post.

          /mypage.php?x=$a rr doesn,t seem to work because the values found when I use the $_GET['x'] is not correct. It always gives me A as a result

          Thanks anyhow

          Comment

          Working...