Re: [RCU] roundcube disconnect if simultaneous login

2012-03-24 Thread Thomas Bruederli
Claudio Kuenzler wrote:
> Yes if you had told us you use twice the same domain, we'd have told
> you from the begin its absolutely normal that your cookie session gets kicked.
> 
> For sessions/cookies always use subdomains to distinguish different webapps.

It would also work with one host but with paths (not ports!). Then you need
to configures the default cookie path used by PHP from / to /mywebmail1 and
/mywebmail2 on these two installations. This can be done in the .htaccess file.

See
http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-path


> On Thu, Mar 22, 2012 at 3:00 PM, Nelson Serafica  > wrote:
> 
> Ok I think I got the issue. I forgot to mention how I'm accessing the url
> 
> RC1 - http://www.foo.com:81/webmail
> RC2 -  http://www.foo.com:82/webmail
> 
> I created a virtual domain in RC1
> 
> http://webmail.foo.com:81
> 
> And was now able to login without being kick out on RC2 using the
> virtual domain.

Right, because now the browser can manage two distinct cookies.

~Thomas
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users


Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Claudio Kuenzler
Yes if you had told us you use twice the same domain, we'd have told
you from the begin its absolutely normal that your cookie session gets
kicked.

For sessions/cookies always use subdomains to distinguish different webapps.

On Thu, Mar 22, 2012 at 3:00 PM, Nelson Serafica wrote:

> Ok I think I got the issue. I forgot to mention how I'm accessing the url
>
> RC1 - http://www.foo.com:81/webmail
> RC2 -  http://www.foo.com:82/webmail
>
> I created a virtual domain in RC1
>
> http://webmail.foo.com:81
>
> And was now able to login without being kick out on RC2 using the virtual
> domain.
>
> Thanks to all who provided their inputs!
>
>
>
> On Thu, Mar 22, 2012 at 8:38 PM, Nelson Serafica wrote:
>
>> I just notice this. When I open RC1, I was able to login with no issue.
>> When I open RC2 and I tried to login, I encountered
>>
>> Invalid Request! No Data was saved
>>
>> When I checked RC1, it is now logout with session expired or invalid.
>> Both RC are hosted on a different physical server.
>>
>> It seems it is cookie related. Do you think it is on my apache config?
>>
>>
>> On Thu, Mar 22, 2012 at 7:09 PM, Claudio Kuenzler > > wrote:
>>
>>> Are the two webmails on the same server?
>>>
>>> I've just made some tests:
>>>
>>> Firefox 11, same window, two tabs, two different roundcube webmails each
>>> hosted on a different physical server -> works fine
>>>
>>>
>
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Nelson Serafica
Ok I think I got the issue. I forgot to mention how I'm accessing the url

RC1 - http://www.foo.com:81/webmail
RC2 -  http://www.foo.com:82/webmail

I created a virtual domain in RC1

http://webmail.foo.com:81

And was now able to login without being kick out on RC2 using the virtual
domain.

Thanks to all who provided their inputs!



On Thu, Mar 22, 2012 at 8:38 PM, Nelson Serafica wrote:

> I just notice this. When I open RC1, I was able to login with no issue.
> When I open RC2 and I tried to login, I encountered
>
> Invalid Request! No Data was saved
>
> When I checked RC1, it is now logout with session expired or invalid. Both
> RC are hosted on a different physical server.
>
> It seems it is cookie related. Do you think it is on my apache config?
>
>
> On Thu, Mar 22, 2012 at 7:09 PM, Claudio Kuenzler 
> wrote:
>
>> Are the two webmails on the same server?
>>
>> I've just made some tests:
>>
>> Firefox 11, same window, two tabs, two different roundcube webmails each
>> hosted on a different physical server -> works fine
>>
>>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Nelson Serafica
I just notice this. When I open RC1, I was able to login with no issue.
When I open RC2 and I tried to login, I encountered

Invalid Request! No Data was saved

When I checked RC1, it is now logout with session expired or invalid. Both
RC are hosted on a different physical server.

It seems it is cookie related. Do you think it is on my apache config?

On Thu, Mar 22, 2012 at 7:09 PM, Claudio Kuenzler 
wrote:

> Are the two webmails on the same server?
>
> I've just made some tests:
>
> Firefox 11, same window, two tabs, two different roundcube webmails each
> hosted on a different physical server -> works fine
>
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Reinaldo de Carvalho
Cokkies are domain related. Try set differrnts VirtualHost for each roundcube.

[]'s

Reinaldo

Sent from my iPhone

Em 22/03/2012, às 07:03, Nelson Serafica  escreveu:

> Let me rephrase " I could not login to multiple RC in a single browser ". I'm 
> running dovecot BTW 
> 
> On Thu, Mar 22, 2012 at 5:45 PM, Nelson Serafica  wrote:
> It wasn't the same before I did some modification. I revert back to my old 
> config which is different des_key and it is still the same. I'm getting kick 
> out on the 1st RC after logging in to the 2nd RC. I tried also to other 
> browser (IE and Chrome) but issue still occur. I could open multiple RC on a 
> single browser.
> 
> BTW, my 1st roundcube is running on https while the other one is running on 
> http.
> 
> On Thu, Mar 22, 2012 at 5:35 PM, Claudio Kuenzler  
> wrote:
> they SHOULD NOT have the same key. 
> if anything then this would cause that you get kicked out of the other 
> webmail.
> 
> 
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Andreas Dick

if that help, I can confirm:
-> login with FF on two RC (same host, RC6.? and latest SVN)
-> the second login (RC SVN) do not show any email, but contacts are ok
-> the first one works further well
-> after logout of the second
-> the first one is logged out as well

maybe its not nice, but I do not need that feature for now.

Andreas


Am 2012-03-22 12:22, schrieb Claudio Kuenzler:

Alec, its not me having this issue.
Im just trying to help Nelson. Read mail again.
Thats why I also asked him if the webmails are hosted on the same 
host

(maybe same cookie path or other PHP setting which needs to be
adapted)

On Thu, Mar 22, 2012 at 12:17 PM, A.L.E.C  wrote:


On 22.03.2012 12:10, Claudio Kuenzler wrote:
> forgot to mention the RC version: 0.7.1
> Same configuration on both webmails (except DB-settings, DES key
and such
> local/unique things)

Ill tell you again. This is how cookie-based session work. You can
do
nothing about it. Maybe change of cookie path would help, however
theres no related configuration in Roundcube. des_key has nothing
to
this!!!

--
Aleksander A.L.E.C Machniak
LAN Management System Developer [http://lms.org.pl [1]]
Roundcube Webmail Developer  [http://roundcube.net [2]]
---
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl [3]

___
Roundcube Users mailing list
users@lists.roundcube.net [4]
http://lists.roundcube.net/mailman/listinfo/users [5]




Links:
--
[1] http://lms.org.pl
[2] http://roundcube.net
[3] http://alec.pl
[4] mailto:users@lists.roundcube.net
[5] http://lists.roundcube.net/mailman/listinfo/users
[6] mailto:a...@alec.pl


___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Claudio Kuenzler
Alec, it's not me having this issue.
I'm just trying to help Nelson. Read mail again.
That's why I also asked him if the webmails are hosted on the same host
(maybe same cookie path or other PHP setting which needs to be adapted)

On Thu, Mar 22, 2012 at 12:17 PM, A.L.E.C  wrote:

> On 22.03.2012 12:10, Claudio Kuenzler wrote:
> > forgot to mention the RC version: 0.7.1
> > Same configuration on both webmails (except DB-settings, DES key and such
> > local/unique things)
>
> I'll tell you again. This is how cookie-based session work. You can do
> nothing about it. Maybe change of cookie path would help, however
> there's no related configuration in Roundcube. des_key has nothing to
> this!!!
>
> --
> Aleksander 'A.L.E.C' Machniak
> LAN Management System Developer [http://lms.org.pl]
> Roundcube Webmail Developer  [http://roundcube.net]
> ---
> PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread A.L.E.C
On 22.03.2012 12:10, Claudio Kuenzler wrote:
> forgot to mention the RC version: 0.7.1
> Same configuration on both webmails (except DB-settings, DES key and such
> local/unique things)

I'll tell you again. This is how cookie-based session work. You can do
nothing about it. Maybe change of cookie path would help, however
there's no related configuration in Roundcube. des_key has nothing to
this!!!

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users


Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Claudio Kuenzler
forgot to mention the RC version: 0.7.1
Same configuration on both webmails (except DB-settings, DES key and such
local/unique things)

On Thu, Mar 22, 2012 at 12:09 PM, Claudio Kuenzler
wrote:

> Are the two webmails on the same server?
>
> I've just made some tests:
>
> Firefox 11, same window, two tabs, two different roundcube webmails each
> hosted on a different physical server -> works fine
>
> On Thu, Mar 22, 2012 at 11:03 AM, Nelson Serafica wrote:
>
>> Let me rephrase " I could not login to multiple RC in a single browser ".
>> I'm running dovecot BTW
>>
>> On Thu, Mar 22, 2012 at 5:45 PM, Nelson Serafica wrote:
>>
>>> It wasn't the same before I did some modification. I revert back to my
>>> old config which is different des_key and it is still the same. I'm getting
>>> kick out on the 1st RC after logging in to the 2nd RC. I tried also to
>>> other browser (IE and Chrome) but issue still occur. I could open multiple
>>> RC on a single browser.
>>>
>>> BTW, my 1st roundcube is running on https while the other one is running
>>> on http.
>>>
>>>  On Thu, Mar 22, 2012 at 5:35 PM, Claudio Kuenzler <
>>> c...@claudiokuenzler.com> wrote:
>>>
 they SHOULD NOT have the same key.
 if anything then this would cause that you get kicked out of the other
 webmail.


>>
>> ___
>> Roundcube Users mailing list
>> users@lists.roundcube.net
>> http://lists.roundcube.net/mailman/listinfo/users
>>
>
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Claudio Kuenzler
Are the two webmails on the same server?

I've just made some tests:

Firefox 11, same window, two tabs, two different roundcube webmails each
hosted on a different physical server -> works fine

On Thu, Mar 22, 2012 at 11:03 AM, Nelson Serafica wrote:

> Let me rephrase " I could not login to multiple RC in a single browser ".
> I'm running dovecot BTW
>
> On Thu, Mar 22, 2012 at 5:45 PM, Nelson Serafica wrote:
>
>> It wasn't the same before I did some modification. I revert back to my
>> old config which is different des_key and it is still the same. I'm getting
>> kick out on the 1st RC after logging in to the 2nd RC. I tried also to
>> other browser (IE and Chrome) but issue still occur. I could open multiple
>> RC on a single browser.
>>
>> BTW, my 1st roundcube is running on https while the other one is running
>> on http.
>>
>>  On Thu, Mar 22, 2012 at 5:35 PM, Claudio Kuenzler <
>> c...@claudiokuenzler.com> wrote:
>>
>>> they SHOULD NOT have the same key.
>>> if anything then this would cause that you get kicked out of the other
>>> webmail.
>>>
>>>
>
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Nelson Serafica
Let me rephrase " I could not login to multiple RC in a single browser ".
I'm running dovecot BTW

On Thu, Mar 22, 2012 at 5:45 PM, Nelson Serafica wrote:

> It wasn't the same before I did some modification. I revert back to my old
> config which is different des_key and it is still the same. I'm getting
> kick out on the 1st RC after logging in to the 2nd RC. I tried also to
> other browser (IE and Chrome) but issue still occur. I could open multiple
> RC on a single browser.
>
> BTW, my 1st roundcube is running on https while the other one is running
> on http.
>
>  On Thu, Mar 22, 2012 at 5:35 PM, Claudio Kuenzler  > wrote:
>
>> they SHOULD NOT have the same key.
>> if anything then this would cause that you get kicked out of the other
>> webmail.
>>
>>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Nelson Serafica
It wasn't the same before I did some modification. I revert back to my old
config which is different des_key and it is still the same. I'm getting
kick out on the 1st RC after logging in to the 2nd RC. I tried also to
other browser (IE and Chrome) but issue still occur. I could open multiple
RC on a single browser.

BTW, my 1st roundcube is running on https while the other one is running on
http.

On Thu, Mar 22, 2012 at 5:35 PM, Claudio Kuenzler 
wrote:

> they SHOULD NOT have the same key.
> if anything then this would cause that you get kicked out of the other
> webmail.
>
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Claudio Kuenzler
they SHOULD NOT have the same key.
if anything then this would cause that you get kicked out of the other
webmail.

On Thu, Mar 22, 2012 at 10:18 AM, Nelson Serafica wrote:

> I configured my two roundcube to have the same des_key but still the same.
> I'm still getting logout once I login to another RC webmail.  Anymore
> recommendation?
>
> On Mon, Mar 19, 2012 at 4:17 PM, Claudio Kuenzler 
> wrote:
>
>> Verify if you're using the same des key in the main.inc.php configs of
>> both webmails.
>>
>> // this key is used to encrypt the users imap password which is stored
>> // in the session record (and the client cookie if remember password is
>> enabled).
>> // please provide a string of exactly 24 chars.
>> $rcmail_config['des_key'] = '';
>>
>> On Mon, Mar 19, 2012 at 2:25 AM, Nelson Serafica wrote:
>>
>>> I'm not sure if this is a bug in RC. I've two mail servers running RC0.7
>>> running in Apache 2.2. If I open two webmail and login to both RC in the
>>> same browser (Google Chrome), the other session of RC get disconnected. But
>>> if I login to different browser, I don't get disconnected. This could be
>>> probably on the cookie session. I tried to check the main.inc.php but could
>>> not found any info related to my issue.
>>>
>>>
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-22 Thread Nelson Serafica
I configured my two roundcube to have the same des_key but still the same.
I'm still getting logout once I login to another RC webmail.  Anymore
recommendation?

On Mon, Mar 19, 2012 at 4:17 PM, Claudio Kuenzler 
wrote:

> Verify if you're using the same des key in the main.inc.php configs of
> both webmails.
>
> // this key is used to encrypt the users imap password which is stored
> // in the session record (and the client cookie if remember password is
> enabled).
> // please provide a string of exactly 24 chars.
> $rcmail_config['des_key'] = '';
>
> On Mon, Mar 19, 2012 at 2:25 AM, Nelson Serafica wrote:
>
>> I'm not sure if this is a bug in RC. I've two mail servers running RC0.7
>> running in Apache 2.2. If I open two webmail and login to both RC in the
>> same browser (Google Chrome), the other session of RC get disconnected. But
>> if I login to different browser, I don't get disconnected. This could be
>> probably on the cookie session. I tried to check the main.inc.php but could
>> not found any info related to my issue.
>>
>>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

Re: [RCU] roundcube disconnect if simultaneous login

2012-03-19 Thread Martin Muskulus
Hi,

> This is just how cookie sessions works.

Yes and no. Session cookies (as all cookies) should be limited to the path 
they are valid for.

>From http://www.php.net/setcookie:
"The path on the server in which the cookie will be available on. If set to 
'/', the cookie will be available within the entire domain. If set to '/foo/', 
the cookie will only be available within the /foo/ directory and all 
sub-directories such as /foo/bar/ of domain. The default value is the current 
directory that the cookie is being set in."

The last sentence might be false or it just doesn't work.

-Martin


___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users


Re: [RCU] roundcube disconnect if simultaneous login

2012-03-19 Thread A.L.E.C
On 19.03.2012 02:25, Nelson Serafica wrote:
> I'm not sure if this is a bug in RC. I've two mail servers running RC0.7
> running in Apache 2.2. If I open two webmail and login to both RC in the
> same browser (Google Chrome), the other session of RC get disconnected. But
> if I login to different browser, I don't get disconnected. This could be
> probably on the cookie session. I tried to check the main.inc.php but could
> not found any info related to my issue.
> 
> Trying my luck if somebody on the list already experience this kind of
> issue.

This is just how cookie sessions works.

-- 
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer  [http://roundcube.net]
---
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users


Re: [RCU] roundcube disconnect if simultaneous login

2012-03-19 Thread Claudio Kuenzler
Verify if you're using the same des key in the main.inc.php configs of both
webmails.

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is
enabled).
// please provide a string of exactly 24 chars.
$rcmail_config['des_key'] = '';

On Mon, Mar 19, 2012 at 2:25 AM, Nelson Serafica wrote:

> I'm not sure if this is a bug in RC. I've two mail servers running RC0.7
> running in Apache 2.2. If I open two webmail and login to both RC in the
> same browser (Google Chrome), the other session of RC get disconnected. But
> if I login to different browser, I don't get disconnected. This could be
> probably on the cookie session. I tried to check the main.inc.php but could
> not found any info related to my issue.
>
> Trying my luck if somebody on the list already experience this kind of
> issue.
>
> TIA,
>
>
> Nelson
>
> ___
> Roundcube Users mailing list
> users@lists.roundcube.net
> http://lists.roundcube.net/mailman/listinfo/users
>
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users

[RCU] roundcube disconnect if simultaneous login

2012-03-18 Thread Nelson Serafica
I'm not sure if this is a bug in RC. I've two mail servers running RC0.7
running in Apache 2.2. If I open two webmail and login to both RC in the
same browser (Google Chrome), the other session of RC get disconnected. But
if I login to different browser, I don't get disconnected. This could be
probably on the cookie session. I tried to check the main.inc.php but could
not found any info related to my issue.

Trying my luck if somebody on the list already experience this kind of
issue.

TIA,


Nelson
___
Roundcube Users mailing list
users@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/users