see 
http://www.symfony-project.com/book/trunk/06-Inside-the-Controller-Layer#User%20Session

On the server side, symfony stores user sessions in files by default. 
You can store them in your database by changing the value of the class 
parameter in factories.yml, as shown in Listing 6-21.

Listing 6-21 - Changing the Server Session Storage, in 
apps/myapp/config/factories.yml

all:
   storage:
     class: sfMySQLSessionStorage
     param:
       db_table: SESSION_TABLE_NAME      # Name of the table storing the 
sessions
       database: DATABASE_CONNECTION     # Name of the database 
connection to use

The available session storage classes are sfMySQLSessionStorage, 
sfPostgreSQLSessionStorage, and sfPDOSessionStorage; the latter is 
preferred. The optional database setting defines the database connection 
to be used; symfony will then use databases.yml (see Chapter 8) to 
determine the connection settings (host, database name, user, and 
password) for this connection.

Fabien

Greg Freeman wrote:
> Hey, I've been doing some searching about changing the behavior of the
> sfguard plugin. I want to be able to store the sessions in a database.
> Has anyone come across any discussion on this matter?
> 
> 
> > 
> 
> 

--~--~---------~--~----~------------~-------~--~----~
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