Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9143941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:08:53+00:00 2026-06-17T10:08:53+00:00

I am trying to find where Symfony is setting a cookie. When I visit

  • 0

I am trying to find where Symfony is setting a cookie. When I visit my site (I’m using the sfDoctrineGuard plugin) I get the login page, which is the expected behaviour. When viewing the cookies that have been created, there is a ‘symfony’ cookie. I can’t find where Symfony is setting this cookie… I need to change the expiry time.

The only places that I see setCookie being used is for the Remember Me key but this is a separate cookie altogether.

The other problem is that for some reason, the expiry time for the ‘symfony’ cookie is showing as “Session” in Safari, and not a date/time.

I’m pretty sure this has nothing to do with sfDoctrineGuard, and that Symfony always creates a cookie when a user visits the site, just need to find the code that is setting this cookie.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:08:55+00:00Added an answer on June 17, 2026 at 10:08 am

    You can change the timeout of the session in the factories.yml

    storage:
      class: sfSessionStorage
      param:
        session_name: symfony
        session_cookie_lifetime: 60000 # number of seconds
    

    Documentation here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to find a way to integrate my website, coded using Symfony with
I am trying to create a website using Symfony and PostgreSQL. I cant find
Trying to find an example that has css rollover using sprites & sliding door
I'm trying to configure my local Apache2 server to host several Symfony websites using
I'm trying find a way to create mysql users with passwords using php code,
I am implementing a web app using symfony 2. It has a main page
I'm using symfony and trying to reference a file that's in a parent directory
I am trying to implement some ajax functionality in my Symfony 2 project. Using
I'm using symfony 1.4.10, and trying to do a rather complex INSERT into a
I'm trying to find a way to use the Symfony 2 Dependency Injection component

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.