Tuesday, May 24, 2011

Cross-Application Login

Scenario: You have two apps, frontend and backend. And you want to have only one single login page for frontend and backend applications, either you login from frontend or you login from backend.

Solution: Set both frontend and backend's factories to something like this:
all:
  user:
    class: myUser
    param:
      timeout:         18000
      logging:         %SF_LOGGING_ENABLED%
      use_flash:       true
      default_culture: %SF_DEFAULT_CULTURE%

  storage:
    class: sfSessionStorage
    param:
      session_name: application_name

No comments:

Post a Comment