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

  • Home
  • SEARCH
  • 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 8163403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:02:03+00:00 2026-06-06T19:02:03+00:00

How do I resolve session_start conflicts without changing the original source code? And how

  • 0

How do I resolve session_start conflicts without changing the original source code? And how does the Symfony component or Silex check to see if a session already exists?

Notice: A session had already been started - ignoring session_start() in
myapp/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 146

EDIT: here’s the first few lines of index.php

require_once __DIR__.'/vendor/autoload.php';

/**
 * from Heroku's Facebook template
 */
require_once('AppInfo.php');
require_once('utils.php');


use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Yaml\Parser;
use Silex\Provider\FormServiceProvider;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Currently using git submodule, will move to composer.json
 */
require_once('sdk/src/facebook.php');

$facebook = new Facebook(array(
  'appId'  => AppInfo::appID(),
  'secret' => AppInfo::appSecret(),
));

$app = new Silex\Application();
// ...
  • 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-06T19:02:05+00:00Added an answer on June 6, 2026 at 7:02 pm

    The FB sdk starts the session only if it’s not started already. Move the sdk initialization after the code that starts silex’s session.

    This is the function Symfony2 uses to see if the user has a session. In essence it checks the existence of a session cookie.

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

Sidebar

Related Questions

I'm using the Unity MVC3 code at http://unitymvc3.codeplex.com/ to have a NHibernate session per
plz help me to resolve this i m a learner [Session started at 2011-01-10
Crazy right? Sample code: <?php session_start(); $hostname=samplehost; $username=sampleuser; $password=samplepass; $dbname=sampledb; $link = mysql_connect($hostname, $username,
I have this Hibernate code: Query q = session.createQuery(from MyTable where status = :status);
I've a problem when use this code in my page: Code with expire session
I have the following NHibernate code: return NHibernateHelper.Session.QueryOver<SubProject>() .Where ( sp => sp.CompletedDate ==
I have the following code: Session session = (Session) em.getDelegate(); Criteria c = session.createCriteria(Term.class);
I'm trying to resolve an IEnumerable of my dependencies through Autofac, but I need
I am trying to resolve a warning shown on the Facebook linter. The parser's
The usual way to resolve lnk involve using WShell.WshShortcut or IShellLink that way :

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.