your example and your text do not match!  see inline comments.

"goEbusiness.com Mail Lists" wrote:

> If I have more than one VirtualHost setup to use Embperl sessions, randomly the 
>session data for one site will be lost, and then a new cookie will be set (proper 
>name, etc) but to the OTHER VIRTUAL HOSTS's Session table!
>
> Each session table is on a different database (one database per VirtualHost in these 
>examples)
>
> I have enabled the DEBUG to look at the ENV, and for each request, the environment 
>is set properly (ie if I go to clients.domain.com I see the SESSION_ARGS I set for 
>that VirtualHost in the log, and also if I print it out from my Embperl processed 
>page)
>
> I've tried putting the PerlSetEnv settings in just the <VirtualHost> tags, moved 
>Directory in/out of VirtualHost...same problem.
>
> The first connection works fine, say if I got to clients.domain.com, I see the 
>correct session ID in their database.
>
> If I go to other.domain.com, I see the correct session cookie in their 
>database/table.

if you use other.domain.com and clients.domain.com, then you are going to have a 
problem with a cookie
domain of ".domain.com".  the cookie from clients.domain.com will be offered to 
other.domain.com which of
course has no record of it, and then delivers its own fresh cookie.

>
>
> But then, if I randomly use other browsers or machines, or the browsers I already 
>have open, the ID will change.
>
>
> <VirtualHost 192.168.1.11>
> DocumentRoot /disk1/www/Clients
> ServerName clients.domain.com
> <Directory "/disk1/www/Clients">
>         <Files *.epl>
>                 SetHandler  perl-script
>                 PerlHandler HTML::Embperl
>                 Options     +ExecCGI
>                 PerlSetEnv EMBPERL_OPTIONS 16
>                 PerlSetEnv EMBPERL_COOKIE_DOMAIN ".domain.com"
>                 PerlSetEnv EMBPERL_COOKIE_PATH "/"
>                 PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL MySQL"
>                 PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:database 
>UserName=username Password=password LockDataSource=dbi:mysql:database 
>LockUserName=username LockPassword=password"
>         </Files>
> </Directory>
> </VirtualHost>
>
> <VirtualHost 192.168.1.11>
> DocumentRoot /disk1/www/Other
> ServerName other.domain2.com
> <Directory "/disk1/www/Other">
>         <Files *.html>
>                 SetHandler  perl-script
>                 PerlHandler HTML::Embperl
>                 Options     +ExecCGI
>                 PerlSetEnv EMBPERL_OPTIONS 16
>                 PerlSetEnv EMBPERL_COOKIE_PATH "/"
>                 PerlSetEnv EMBPERL_COOKIE_DOMAIN ".domain2.com"

this of course would work, because the COOKIE_DOMAIN is different.  you need to
examine the actual hostnames and the COOKE_DOMAIN values you have for each of
them.

hth,

--
___cliff [EMAIL PROTECTED]http://www.genwax.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to