How can I use PHP setcookie() so when users register from a custom register system, the amember system will recognized them as logged i
@saltdog: I'm assuming the userid and password are the same in your 3rd party app that is in aMember? If that is the case than you just set the (from memory here) $_SESSION['_amember_login'] $_SESSION['_amember_pass'] You can take a look at your session tables on a logged in site to be for sure. Note: This will not trigger any 3rd party integration hooks I believe.. so not sure how useful this will be. What is your use case?
I have written my own script to register users (using the correct data). However, I need to have them be automatically logged in when they register
To make this happen you need to set two session variables in your script: Code: $_SESSION['_amember_login'] = "USERLOGIN"; $_SESSION['_amember_pass'] = "USERPASSWORD";