Re: Sessions interfering with one another
| From: | Adam dot Whitehead at csm dot com dot au | Date: | Tue, 12 Mar 2002 00:28:08 +0000 |
| Subject: | Re: Sessions interfering with one another | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-88126@lists.php.net to get a copy of this message | ||
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: adam.whitehead@csm.com.au
Richard
Baskett To: <Adam.Whitehead@csm.com.au>
<rick@baskett cc: PHP General <php-general@lists.php.net>
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: Adam.Whitehead@csm.com.au
> Date: Tue, 12 Mar 2002 09:44:01 +0930
> To: Richard Baskett <rick@baskettcase.com>
> Cc: PHP General <php-general@lists.php.net>
> 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: adam.whitehead@csm.com.au
>
>
>
>
> Richard
> Baskett To:
<Adam.Whitehead@csm.com.au>,
> PHP General <php-general@lists.php.net>
> <rick@baskett cc:
> 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: adam.whitehead@csm.com.au
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
>
>
>