473,378 Members | 1,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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
Dec 26 '11 #1
4 1471
Dormilich
8,658 Expert Mod 8TB
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
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
use $_post or $_get method.
let me know you difficulty in using it.
Dec 27 '11 #4
@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

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

Similar topics

13
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location...
4
by: john | last post by:
How do u guys handle multiple sessions?? i.e, opening different browser windows by running iexplore.exe or clicking IE icons and opening the application. My sessions are mixing up. what i mean is...
1
by: Michael Krasnyk | last post by:
Hi, How can I print variable values by their names? For example: import sys for str in dir(sys): print str Will be printed only variable names, but I need values from list of variable...
8
by: deko | last post by:
Is there a rule of thumb for quoting variable values? For example, do I have to put all string number values in quotes? strAbc = "3" ? What about long, int and byte? I assume these are NOT...
6
by: msigwald | last post by:
The following line of code works, however, since my professor is a real purist of c, I would like to know if this code is valid (is it good code or a piece of crap?): #define DMP_FILE argv ...
1
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The...
5
by: Manuel Arroba | last post by:
I had the idea that two users code are being run by two different instancies, so from the variable values point of view they are complete independent. I have an asp.net that calls a module...
4
by: Shankar Reddy | last post by:
Hi All, Problem: Data is being shared across multiple sessions in ASP.NET! Does anybody come across this kind of situation where session data or view state data is being shared across...
4
by: psbasha | last post by:
Hi, How to check the class attributes/member variable values while debuging in 'PythonWin'?. I need to watch all the member varibales values of a class ,given the object or etc. Thanks PSB
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.