Perhaps so. Normally it would return a boolean which would be assigned to the $SESSION variable that you want to track. How you get this is what you're talking about, a DB query that would return 1 or 0 (or Y/N, or T/F, or something like that) depending on whether the user is a "subscriber" (whatever that is). In that case, it might be something like:
if )$_SESSION['subscriber']) {
//print the source link
} else {
echo "You must be subscribed to view this data.";
}
Typically, a $_SESSION instance might contain anything you'd wish to know about a user in order to do "user stuff" on a page ... like determine the login status (T/F, a boolean), print their username (a string), determine if they're a subscriber (another boolean), etc.
On our site, for example, a "user object" contains the integer $user_id, the strings $username and $firstname, the boolean $is_logged_in, the cookie data $cookie, an array of alphanumeric $access_codes, and an integer $shoplist_count that tells how many shopping lists they have products in. That's a little over your head in terms of coding, maybe, right now, but we're trying to think broadly about what a site does, and somewhat more specifically about how it does it ....