Hi,

How do I access session variables set by another application on the
same domain? Symfony seems to clear them.

To explain further I'm building a bolt-on application in Symfony for
something that's already in production and non-symfony.

I've got symfony running in a subfolder of the app and within my
Symfony project I've a 'bridge' class autoloaded from /lib/ and
instantiated in each controller's preExecute() that pulls in a few
settings from the main application and this is all working nicely.

However I can't access a couple of important session variables set by
the main application and if I print_r($_SESSION) (within my class or
the layout) is just contains a few symfony vars.

For example I go to http://mainapp/ and do some stuff, session vars
are set. I now go to http://mainapp/symfony/ and they've been wiped.

Obviously Symfony is making the session its own but I need to grab
some of the data before it gets wiped so it can be shared between both
apps.

Looking at the code for sfSessionStorage I see that the default
seesion_name is set as 'symfony' so in the legacy app I also set the
session name as that, but after doing so when I access the Symfony
part I now get:

Warning: session_start() [function.session-start]: Function
spl_autoload_call() hasn't defined the class it was called for in /usr/
share/php/symfony/storage/sfSessionStorage.class.php on line 77

I'd appreciate some pointers of what to look at next, thanks.

Darren Beale


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to