Is it possible to set a session in symfony without any namespaces?
Another application I am using with symfony requires a session value
to see if the user is logged in (which needs to bet set in symfony) I
do not want to hard code it in..
Array
(
[symfony/user/sfUser/attributes] => Array
(
[symfony/user/sfUser/attributes] => Array
(
[test] => 1
)
)
)
I am just wondering why symfony does this? nesting symfony/user/sfUser/
attributes twice when no namespace is specified. I need to be able to
access $_SESSION['test'] in another application. The way it is coded I
do not believe I can access it with $_SESSION['symfony/user/sfUser/
attributes']['symfony/user/sfUser/attributes']['test']. There is a
config variable in which you can change the name of the session key
only. (Application written by someone else).
Of course the easy solution would be to simply just add
$_SESSION['test'] = 1 but I thought I might see if this could be
achieved in a cleaner way.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---