maybe look for the PHPSESSID and check some value in the session? just to illustrate how this could look?