0

I tried to view the $_SESSION and $_COOKIE details by print_r ing those two arrays

But my session array is empty before and after login.

I wrote the code in template.php file.

But the user is loggin in with out any problem.

Is there any problem with my installation, am running it as http://localhost/drupal7/

echo '<pre>';print_r($_SESSION); echo '</pre>';
echo '<pre>';print_r($_COOKIE); echo '</pre>';

this is the code i have written to print it.I am going thru it to know whether its session and cookie values are colliding with that of magento as i am working on single sign on into drupal and magento.

3
  • I am not sure. But by default $_SESSION variable is empty. so what else are you expecting $_SESSION variable should have? What is the code you written in template.php?
    – j2r
    Commented Dec 27, 2012 at 9:55
  • @j2r: i am editing the question with more details
    – zamil
    Commented Dec 27, 2012 at 10:02
  • sorry i am not sure about the single sign on with magento.
    – j2r
    Commented Dec 27, 2012 at 10:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.