By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,589 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Multiple sessions with own variable values

P: 3
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
Dec 26 '11 #1
Share this Question
Share on Google+
4 Replies


Dormilich
Expert Mod 5K+
P: 8,639
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).
Dec 26 '11 #2

P: 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
Dec 27 '11 #3

P: 5
use $_post or $_get method.
let me know you difficulty in using it.
Dec 27 '11 #4

P: 3
@sramineni
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=$arr 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
Dec 27 '11 #5

Post your reply

Sign in to post your reply or Sign up for a free account.