Okay making progress but now I'm getting.

Fatal error: Uncaught exception 'sfDatabaseException' with message
'MySQLSessionStorage cannot create new record for id
"j1auff5ej8ke92shevhecosv84"' in /usr/share/pear/symfony/storage/
sfMySQLSessionStorage.class.php:230 Stack trace: #0 [internal
function]: sfMySQLSessionStorage->sessionRead('j1auff5ej8ke92s...')
#1 /usr/share/pear/symfony/storage/
sfMySQLSessionStorage.class.php(76): session_start() #2 /var/www/html/
grc/cache/backend/dev/config/config_factories.yml.php(20):
sfMySQLSessionStorage->initialize(Object(sfContext), Array) #3 /usr/
share/pear/symfony/util/sfContext.class.php(70): require('/var/www/
html/g...') #4 /usr/share/pear/symfony/util/sfContext.class.php(87):
sfContext->initialize() #5 /var/www/html/grc/web/backend_dev.php(10):
sfContext::getInstance() #6 {main} thrown in /usr/share/pear/symfony/
storage/sfMySQLSessionStorage.class.php on line 230

Fatal error: Exception thrown without a stack frame in Unknown on line
0

I've verified that the user (outside of symfony) can write to the
database and that the db_*_col names match up. What  am I missing?

Kiril Angov <[EMAIL PROTECTED]> wrote:
> Just to make sure you noticed:
>
> mySessionDatabase:
>   pdo:
>     class:   sfPDODatabase
>       param:
>         dsn: mysql://<user>:<passwd>@<SessionHostName>/<SessionDatabase>
>
> 'class' and 'param' should be indented at the same level (two spaces
> more than pdo)
>
> Kupo
>
> Carl Parrish wrote:
> > Okay I have two domains that are residing on separate computers. I'm
> > currently upgrading one domain to symfony. Each domain has to be able
> > to access the same session information. In the pass I've done this by
> > storing the session in a database (on a 3rd computer). Then passing
> > the session ID back and forth over the queryString. (If I ever figure
> > out how to get different domains to read the same cookie I might
> > change that). So I'm attempting to do pretty much the same thing now.
>
> > in factories.yml I have
>
> > all:
> >   storage:
> >     class sfPDOSessionStorage
> >       param:
> >         session_name: <sessionName>
> >         db_table: <databaseTableName>
> >         database: mySessionDatabase  # no idea what should go here
>
> > I'm assuming database refs to something in databases.yml. Since in
> > this case I don't want it to use the default dsn. but how should I
> > declare this other database connection?
>
> > In databases.yml I have
>
> > all:
> >   propel:
> >     class:   sfPropelDatabase
> >     param:
> >       dsn:   mysql://<user>:<passwd>@<hostName>/<databaseName>
>
> > I'm guessing I should add something like.
>
> > mySessionDatabase:
> >   pdo:
> >     class:   sfPDODatabase
> >       param:
> >         dsn: mysql://<user>:<passwd>@<SessionHostName>/<Session
> > Database>
>
> > Only something is wrong with my syntax here can anyone help me out (or
> > point out where in the docs I should be looking?)
>
> > Thanks,
> > Carl


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to