pools.jp | SymfonyでCookie名を任意の名称に変更する


SymfonyでCookie名を任意の名称に変更する

symfonyではデフォルトのクッキー名が”symfony”になっていて、そのままにしておくとダサイです。
この名称を変更はアプリケーションの設定ファイルで行なことができます。

[symfonyproject]/apps/[appname]/config/factories.ymlを以下のように書き換えます。

all:
  storage:
    class: sfSessionStorage
      param:
        session_name: hogehoge

これでcookie名はhogehogeに変更されるはずです。


Posted at Saturday, October 20th, 2007comment (0) | trackback | category: php, symfony

Read More

Related Reading:


Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.