Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

I think you should not autostart session. In case framework.session.auto... #146

Closed
wants to merge 1 commit into from

Conversation

notrix
Copy link

@notrix notrix commented May 13, 2012

..._start is false. Anyway if you use standard symfony session it will start automatically on any set or get.

…uto_start is false. Anyway if you use standard symfony session it will start automatically on any set or get.
@notrix
Copy link
Author

notrix commented May 16, 2012

After some research i found that turning off session autostart is not a silver bullet. But this is correct with this bundle i found: https://github.com/gillest/HackSessionBundle

I dont like Hack prefix but it does the job.

@xkobal
Copy link

xkobal commented Jun 20, 2012

Even while I run php app/console cache warmup, the session is created, here is an exception I throw while cache is warm:

#0 vendor/symfony/src/Symfony/Component/HttpFoundation/Session.php(64): Overblog\CommonBundle\HttpFoundation\SessionStorage\LoadBalancedSessionStorage->start()
#1 vendor/bundles/FOS/FacebookBundle/Facebook/FacebookSessionPersistence.php(28): Symfony\Component\HttpFoundation\Session->start()
#2 app/cache/dev/appDevDebugProjectContainer.php(769): FOS\FacebookBundle\Facebook\FacebookSessionPersistence->__construct(Array, Object(Symfony\Component\HttpFoundation\Session))
#3 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getFosFacebook_ApiService()
#4 app/cache/dev/appDevDebugProjectContainer.php(2633): Symfony\Component\DependencyInjection\Container->get('fos_facebook.ap...')
#5 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getSecurity_Authentication_ManagerService()
#6 app/cache/dev/appDevDebugProjectContainer.php(1625): Symfony\Component\DependencyInjection\Container->get('security.authen...')
#7 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getSecurity_ContextService()
#8 app/cache/dev/appDevDebugProjectContainer.php(2409): Symfony\Component\DependencyInjection\Container->get('security.contex...')
#9 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getTwigService()
#10 app/cache/dev/appDevDebugProjectContainer.php(60): Symfony\Component\DependencyInjection\Container->get('twig')
#11 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getAssetic_AssetManagerService()
#12 app/cache/dev/appDevDebugProjectContainer.php(1594): Symfony\Component\DependencyInjection\Container->get('assetic.asset_m...')
#13 app/bootstrap.php.cache(190): appDevDebugProjectContainer->getRouting_LoaderService()
#14 vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/Router.php(52): Symfony\Component\DependencyInjection\Container->get('routing.loader')
#15 vendor/symfony/src/Symfony/Component/Routing/Router.php(216): Symfony\Bundle\FrameworkBundle\Routing\Router->getRouteCollection()
#16 vendor/symfony/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/RouterCacheWarmer.php(47): Symfony\Component\Routing\Router->getMatcher()
#17 vendor/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php(47): Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer->warmUp('/home/overblog/...')
#18 vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php(50): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/home/overblog/...')
#19 vendor/symfony/src/Symfony/Component/Console/Command/Command.php(226): Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 vendor/symfony/src/Symfony/Component/Console/Application.php(194): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php(75): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 vendor/symfony/src/Symfony/Component/Console/Application.php(118): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 app/console(22): Symfony\Component\Console\Application->run()
#24 {main}

@diegoholiveira
Copy link

@notrix can I close this PR?

@notrix
Copy link
Author

notrix commented Dec 28, 2012

Yes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants