0

I am using Mage::getSingleton("customer/session") to be able to login to Magento externally. Problem is, this seems to clear up other $_SESSION variables I have set.

How can I have the entire cake and be able to login to Magento plus setting normal SESSION-variables?

Undrium
  • 2,558
  • 1
  • 16
  • 24

1 Answers1

1

I assume this answer might apply to you also: Magento external login will not create session cookie
In essence try first creating the Magento session before you create the other session.

If that doesn't help you might need to provide additional code so a good answer can be supplied.

Community
  • 1
  • 1
Vinai
  • 14,162
  • 2
  • 49
  • 69
  • Vinai, that is actually the code I am using. The problem is while using this the other session-variables get cleared by some reason. My magento-sessions are kept but the other ones are erased. – Undrium Feb 14 '12 at 06:59
  • Nevermind, actually figured this out, was a hidden session_start that messed it up. – Undrium Feb 14 '12 at 07:42