[PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
Hello, I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo $_SESSION['dummy']; ? when running the script in B, in can see the value 10. How can I make sure that

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Jean-Christophe Roux wrote: I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo $_SESSION['dummy']; ? when running the script in B, in can see the value 10. How

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Paul Scott
On Thu, 2007-05-24 at 04:23 -0700, Jean-Christophe Roux wrote: when running the script in B, in can see the value 10. How can I make sure that the $_SESSION['dummy'] is not shared between the two scripts? I could change the name but that would not be convenient. I think you are missing

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
: Thursday, May 24, 2007 7:34:24 AM Subject: Re: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Darren Whitlen
: [PHP] two php scripts with same $_SESSION variables Jean-Christophe Roux wrote: I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo $_SESSION

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be a bit more vocal about it. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
scripts with same $_SESSION variables Jean-Christophe Roux wrote: I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo $_SESSION['dummy

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jochem Maas
Darren Whitlen wrote: Stut wrote: ... Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) when he goes quiet - that's when it's time to worry ;-) -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Edward Kay
Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) I don't think Stut gets annoyed more than any of the others on this list. Please remember though that a) Stut's answers tend to be very high quality and b) Top

RE: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Ford, Mike
On 24 May 2007 13:22, Jean-Christophe Roux wrote: Hello, Thank you for the answers. The issue is that the same codes are in folders A and B. When they are run from two different browsers, I am getting the behavior I 'd like to see with two session ids being created and therefore no sharing

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Jean-Christophe Roux
Stut wrote What you're wanting to do can be achieved by setting the path on the session cookies. You may be able to do this by calling ini_set to change session.cookie_path before calling session_start. ini_set('session.cookie_path', '/A/'); session_start(); That's a good solution; it works

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Jean-Christophe Roux wrote: Stut wrote What you're wanting to do can be achieved by setting the path on the session cookies. You may be able to do this by calling ini_set to change session.cookie_path before calling session_start. ini_set('session.cookie_path', '/A/'); session_start();

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 6:23 am, Jean-Christophe Roux wrote: Hello, I have folder A with the following php script: ?php session_start(); $_SESSION['dummy']=10; echo $_SESSION['dummy']; ? in folder B (same level as A), there is ?php session_start(); echo $_SESSION['dummy']; ? when

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 7:44 am, Stut wrote: Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be a bit more vocal about it. I daresay every regular has vented one

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Stut
Richard Lynch wrote: On Thu, May 24, 2007 7:44 am, Stut wrote: Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be a bit more vocal about it. I daresay every

Re: [PHP] two php scripts with same $_SESSION variables

2007-05-24 Thread Richard Lynch
On Thu, May 24, 2007 4:50 pm, Stut wrote: Richard Lynch wrote: On Thu, May 24, 2007 7:44 am, Stut wrote: Darren Whitlen wrote: Stut.. I've only been here one day, and I think I'm right in saying that your the one around here that gets annoyed really easy ;) Not really, I just tend to be