776 B
776 B
layout | title | date | tags | permalink | published | author | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
post | Changing the session cookie’s name in Symfony 2 | 2012-10-13 12:49:28+00:00 |
|
/blog/2012/10/13/changing-the-session-cookie-s-name-in-symfony-2 | true |
|
I have a development server, on which I have several Symfony 2.x projects under the same hostname in different directories. Now I’m facing a funny problem which is caused by that the cookies Symfony places for each of my projects have the same name.
To change this, you will have to modify the config.yml
file like this:
{% highlight yaml %} session: name: SiteSpecificSessionName lifetime: 3600 {% endhighlight %}
I hope it helps some of you.