You would have to check if both cookies (bbuserid and bbpassword) exist and if they are valid.
To do so you must query the vB user table for the given userid and check if md5(concat(password, 'LicenseNo')) is the same as the value of cookie bbpassword.
If not perform a header-redirect to login.php.
Unfortunately I can't give you code-examples as I don't know anything about ASP.
|