php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software


Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Checks to see if a user is logged in


integer = afc_check_if_logged_in (id)

This function checks to see if a user is logged in, and if so returns their member id number. If they are not logged in, this function will automatically redirect them to the log in page.


id (integer) - Anytime you see this variable being passed to a function, all you need to do is simply use the variable $id, which is automatically set for you when dbinfo.php is called.

Return Values

This function has no return value.

Open Source: Yes

Paul's Examples

$memberid = afc_check_if_logged_in ($id);

Back to Functions List


There are currently no posts for this topic.

AFCommerce Documentation

High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
AFCommerce Website
And Cart Builder