Friday, August 31, 2012

Re: One site logs the other out in the same browser

Gotta love those boys. Here's a private reply I received about my post that had nothing to do with user management (love the line about me being a beginner!):

"
Hi Jeremy,

I have a plugin for cakephp 2.x which can help you a lot in your project. It has many features you can have a look on [website removed]

Free version at [website removed]

As you are beginner this plugin can help you a lot

Please let me know if you have any questions
"


Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 31 Aug 2012, at 09:33:05, Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com> wrote:

> Thanks - that go it. I changed this:
>
> Configure::write('Session', array(
> 'defaults' => 'database',
> 'cookie' => 'myappname'
> ));
>
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 31 Aug 2012, at 09:22:38, Andras Kende <andras@kende.com> wrote:
>
>> I would try change these 2:
>>
>> https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L145
>>
>> change `Session.cookie`
>>
>>
>> and
>>
>>
>> https://github.com/cakephp/cakephp/blob/master/app/Config/core.php#L254
>>
>> // Prefix each application on the same server with a different string, to avoid Memcache and APC conflicts.
>> $prefix = 'myapp_';
>>
>>
>>
>> Andras Kende
>> http://www.kende.com
>>
>>
>>
>> On Aug 31, 2012, at 1:12 AM, Jeremy Burns <jeremyburns@classoutfit.com> wrote:
>>
>>> I have two 2.2.1 Cake sites open in the same browser (doesn't matter if it's Safari or Firefox). If I log in on one, then go to the other and log in there, when I go back to the first site I find I am logged out (and vice versa). I can log into both if each is open in a different browser.
>>>
>>> - Both have their own full cake directory (they are not sharing a core)
>>> - Both are using database sessions (I have tried flicking one to use cake sessions, but the problem persists)
>>> - Both have different Security salt and cipherSeed values
>>> - Both have caching disabled
>>>
>>> Where do I look for the cause?
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "CakePHP" group.
>>> To post to this group, send email to cake-php@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.

No comments: