Hmm. So I added $wple->Login(’taconite’) to the snippet after a successful login, and I have been testing this for weeks blissfully unaware that it doesn’t work.
My situation is that I generate a random unique username for a user temporarily when they sign up. They then get directed to a new page where they can go to paypal and pay a subscription for the site. Once payment is confirmed, they get allocated their real member ID from a pool.
So I altered the snippet as above, so that once they register, they get logged in transparently, then they go to a page with the Personalize snippet that either displays the payment form if they are logged in, or an error if not.
The correct form was being displayed for the user, and the random username correctly passed off to paypal, so this appeared to be working. But in reality it wasn’t - I was logged into the manager, and Personalise was picking that up.
So even though everything worked - the correct details were passed around in the SESSION, I wasn’t really fully logged in. The whole thing fails to work if I log out of manager.
So my question is this - does anyone have any idea what extra thing I need to do to make sure I am genuinely logged in?
Thanks,
Paul