Hi, I want to integrate amember with some php scripts and I have a couple of questions. I can use the protection includes to send people back to login, but I would like to piggy back onto the amember user data, as my scripts have no user management themselves. The main thing I would like to know is the recommended method for getting the user id of the currently logged in user. Once I have the user id I can take care of everything else. Can I pull it from the cookie directly? Or do I need to match it via the session table? Thanks.
Neither. Simplest way is include as first line of your php page and then to include username on page is or to make it its own variable Many other options here - http://www.amember.com/docs/API/Lite
perfect! That is what I was hoping for. I was writing a lot of this myself and figured there must be some easier way and it appears there is. Thanks a heap.