how to get ID_MEMBER from cookie

Started by guri, May 01, 2007, 02:28:03 AM

Previous topic - Next topic

guri

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..

guri

thank u frnds my problem is solved

guri

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...

rotterweil

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

guri


mosravo

good one i love this, it work allowing easy integration with your own web page

Advertisement: