hello all, i am developping an intranet for a shop. it is like a shopping cart. the problem is sometimes i need to use more than 1 tab for different customers while taking orders. if i use session it does not work because all the tabs have got same session. how can i keep different shopping cart on different tabs? regards baris
I don't mean to sound like a jerk, but I think you may want to redesign you program to make it so that you can switch between your different carts in one tab. I ran into the same problem. I ended up using ajax to allow me to do a number of things that would otherwise be impossible. PM me with your email if you would like some detailed help with it.
With where you are at, you will need to have separate sessions/threads. You could use a parameter through the url (ex (*).php?cartid={id}) where {id} is a unique to a cart to limit just to that cart. This would allow you a way to use PHP to then differentiate "tabs". But really, it could be done all kinds of ways.