SESSION Variable Trouble

Permalink
We want to make a custom login for another script using concrete5, but concrete5 is messing up our session variables

print_r($_SESSION); in our script
Array
(
[uid] => 1
[upw] => xxx
[whz_referer] =>
[cart] => Array
(
[products] =>
)

)
and here is print_r($_SESSION); if we include that script in a concrete5
Array
(
[uGroups] => Array
(
[1] => Guest
)

)

Any help would be great :)

hostco
 
hostco replied on at Permalink Reply
hostco
No one can help?
jordanlev replied on at Permalink Reply
jordanlev
Concrete5 starts a session of its own, with its own name. If your login thing is using a different session name, then perhaps you're unable to access it from within C5? Try putting this in your config/site.php file and set the name to match that other one you're using for logins:
define('SESSION', 'YOURSESSIONNAME');