Advertisement:

Author Topic: how to get ID_MEMBER from cookie  (Read 2164 times)

Offline guri

  • Newbie
  • *
  • Posts: 4
how to get ID_MEMBER from cookie
« on: May 01, 2007, 02:28:03 AM »
hi friends..
will be thankful if u can kindly help me in solving this issue.
i need to get member id (ID_MEMBER) from cookie to use it for authentication on my website, as i have a comman login for both smf and website.

m not able to get it..

i used smf_api.php but it didnt work.

thanks in advance.
will be waiting for your reply..

Offline guri

  • Newbie
  • *
  • Posts: 4
Re: how to get ID_MEMBER from cookie
« Reply #1 on: May 01, 2007, 07:32:15 AM »
thank u frnds my problem is solved

Offline guri

  • Newbie
  • *
  • Posts: 4
Re: how to get ID_MEMBER from cookie
« Reply #2 on: May 01, 2007, 08:08:16 AM »
hey guys
i retrive ID_MEMBER throught session..
 but if some one can tell me how to get ID_MEMBER and other use information throught cookie i will be thankful...

problem is if m using

if( isset($_COOKIE[$cookiename]))
{
echo "cookie exists";
//----------------------------------------;
//----------------------------------------;
}
else
{
echo "cookie is not set";
}
// output is : cookie is not set..

its not showing the desired results..
so m i wrong some where...

i have included SSI.php file...

Offline rotterweil

  • Semi-Newbie
  • *
  • Posts: 28
Re: how to get ID_MEMBER from cookie
« Reply #3 on: May 01, 2007, 04:57:00 PM »
Have you tried

$context['user']['is_logged']

and

$context['user']['id']

This works if you include SSI.php
Life is either a great adventure or nothing.
- Helen Keller

Offline guri

  • Newbie
  • *
  • Posts: 4
Re: how to get ID_MEMBER from cookie
« Reply #4 on: May 02, 2007, 12:21:32 AM »
thank u very much, it worked..

Offline mosravo

  • Semi-Newbie
  • *
  • Posts: 26
Re: how to get ID_MEMBER from cookie
« Reply #5 on: July 30, 2013, 06:38:57 AM »
good one i love this, it work allowing easy integration with your own web page