Re: [PHP] Sessions interfering with one another
Can't you just rename the cookie something else for your piece of software? They wont write over each other if they have different names... Rick You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life. - Albert Camus > Hi All > > I am having a problem with two pieces of software written in PHP > interfering with each > other's sessions. > > That software is Squirrelmail, and another piece of software I have written > (a web-based > administration site for schools). I think part of the problem might lie in > the cookies that > are being set. > > Squirrelmail exists at: https://blah.server.com/squirrelmail/ and the other > piece of software > resides at https://blah.server.com/ict/. So I figure perhaps cookies are > overwriting each > other because they are being set for blah.server.com and not the whole > path. > > I am using PHP4 sessions. Is there any way I can make these two sessions > distinct? The problem > is these sites are often used at the same time, in different windows. In > fact my site often launches > Squirrelmail, and at that point they automatically lose their login to my > site because the cookie > disappears! > > Cheers. > > --- > Adam Whitehead > Systems Developer - CSM Limited > Ph. (08) 8936 3165 ** Mobile (0411) 241 120 > E-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions interfering with one another
Sounds good, but I'm not actually setting the cookie, PHP session code does the setting of the cookie. --- Adam Whitehead Systems Developer - CSM Limited Ph. (08) 8936 3165 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED] Richard Baskett To: <[EMAIL PROTECTED]>, PHP General <[EMAIL PROTECTED]> Subject: Re: [PHP] Sessions interfering with one another 12/03/02 09:42 am Can't you just rename the cookie something else for your piece of software? They wont write over each other if they have different names... Rick You will never be happy if you continue to search for what happiness consists of. You will never live if you are looking for the meaning of life. - Albert Camus > Hi All > > I am having a problem with two pieces of software written in PHP > interfering with each > other's sessions. > > That software is Squirrelmail, and another piece of software I have written > (a web-based > administration site for schools). I think part of the problem might lie in > the cookies that > are being set. > > Squirrelmail exists at: https://blah.server.com/squirrelmail/ and the other > piece of software > resides at https://blah.server.com/ict/. So I figure perhaps cookies are > overwriting each > other because they are being set for blah.server.com and not the whole > path. > > I am using PHP4 sessions. Is there any way I can make these two sessions > distinct? The problem > is these sites are often used at the same time, in different windows. In > fact my site often launches > Squirrelmail, and at that point they automatically lose their login to my > site because the cookie > disappears! > > Cheers. > > --- > Adam Whitehead > Systems Developer - CSM Limited > Ph. (08) 8936 3165 ** Mobile (0411) 241 120 > E-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions interfering with one another
Well then rename the session cookieid.. By using session_name() this way it doesn¹t use the default name specified by your php.ini file. Cheers! Rick "Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can." - John Wesley > From: [EMAIL PROTECTED] > Date: Tue, 12 Mar 2002 09:44:01 +0930 > To: Richard Baskett <[EMAIL PROTECTED]> > Cc: PHP General <[EMAIL PROTECTED]> > Subject: Re: [PHP] Sessions interfering with one another > > > Sounds good, but I'm not actually setting the cookie, PHP session code does > the setting > of the cookie. > > --- > Adam Whitehead > Systems Developer - CSM Limited > Ph. (08) 8936 3165 ** Mobile (0411) 241 120 > E-mail: [EMAIL PROTECTED] > > > > > Richard > Baskett To: <[EMAIL PROTECTED]>, > PHP General <[EMAIL PROTECTED]> > case.com>Subject: Re: [PHP] Sessions > interfering with one another > > 12/03/02 > 09:42 am > > > > > > > Can't you just rename the cookie something else for your piece of software? > They wont write over each other if they have different names... > > Rick > > You will never be happy if you continue to search for what happiness > consists of. You will never live if you are looking for the meaning of > life. > - Albert Camus > >> Hi All >> >> I am having a problem with two pieces of software written in PHP >> interfering with each >> other's sessions. >> >> That software is Squirrelmail, and another piece of software I have > written >> (a web-based >> administration site for schools). I think part of the problem might lie > in >> the cookies that >> are being set. >> >> Squirrelmail exists at: https://blah.server.com/squirrelmail/ and the > other >> piece of software >> resides at https://blah.server.com/ict/. So I figure perhaps cookies are >> overwriting each >> other because they are being set for blah.server.com and not the whole >> path. >> >> I am using PHP4 sessions. Is there any way I can make these two sessions >> distinct? The problem >> is these sites are often used at the same time, in different windows. In >> fact my site often launches >> Squirrelmail, and at that point they automatically lose their login to my >> site because the cookie >> disappears! >> >> Cheers. >> >> --- >> Adam Whitehead >> Systems Developer - CSM Limited >> Ph. (08) 8936 3165 ** Mobile (0411) 241 120 >> E-mail: [EMAIL PROTECTED] >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions interfering with one another
Thanks. Worked wonders. I was a bit wary of using session_name() earlier because the documentation on that function is pretty awful. --- Adam Whitehead Systems Developer - CSM Limited Ph. (08) 8936 3165 ** Mobile (0411) 241 120 E-mail: [EMAIL PROTECTED] Richard Baskett To: <[EMAIL PROTECTED]> case.com>Subject: Re: [PHP] Sessions interfering with one another 12/03/02 09:49 am Well then rename the session cookieid.. By using session_name() this way it doesn¹t use the default name specified by your php.ini file. Cheers! Rick "Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can." - John Wesley > From: [EMAIL PROTECTED] > Date: Tue, 12 Mar 2002 09:44:01 +0930 > To: Richard Baskett <[EMAIL PROTECTED]> > Cc: PHP General <[EMAIL PROTECTED]> > Subject: Re: [PHP] Sessions interfering with one another > > > Sounds good, but I'm not actually setting the cookie, PHP session code does > the setting > of the cookie. > > --- > Adam Whitehead > Systems Developer - CSM Limited > Ph. (08) 8936 3165 ** Mobile (0411) 241 120 > E-mail: [EMAIL PROTECTED] > > > > > Richard > Baskett To: <[EMAIL PROTECTED]>, > PHP General <[EMAIL PROTECTED]> > case.com>Subject: Re: [PHP] Sessions > interfering with one another > > 12/03/02 > 09:42 am > > > > > > > Can't you just rename the cookie something else for your piece of software? > They wont write over each other if they have different names... > > Rick > > You will never be happy if you continue to search for what happiness > consists of. You will never live if you are looking for the meaning of > life. > - Albert Camus > >> Hi All >> >> I am having a problem with two pieces of software written in PHP >> interfering with each >> other's sessions. >> >> That software is Squirrelmail, and another piece of software I have > written >> (a web-based >> administration site for schools). I think part of the problem might lie > in >> the cookies that >> are being set. >> >> Squirrelmail exists at: https://blah.server.com/squirrelmail/ and the > other >> piece of software >> resides at https://blah.server.com/ict/. So I figure perhaps cookies are >> overwriting each >> other because they are being set for blah.server.com and not the whole >> path. >> >> I am using PHP4 sessions. Is there any way I can make these two sessions >> distinct? The problem >> is these sites are often used at the same time, in different windows. In >> fact my site often launches >> Squirrelmail, and at that point they automatically lose their login to my >> site because the cookie >> disappears! >> >> Cheers. >> >> --- >> Adam Whitehead >> Systems Developer - CSM Limited >> Ph. (08) 8936 3165 ** Mobile (0411) 241 120 >> E-mail: [EMAIL PROTECTED] >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php