Check session variable before delivering cached page

i can’t do that, since the data we are using for login does not contain an email, so there is no way to connect the shopware login to the custom one. and I do need the user to go with the normal registration (where he/she provides the email and address), so we have the data we need to send the receipt and digital goods bought per email and the rest per post to his/her address.