Were did you get something about a $username ?
This all comes because I have several signup forms.. they all got the session start and the session is destroyed when the user completes the signup form.
But the thing is I dont want people who arent in a session to access directly those pages, because if they arent inside a session that means they aren“t carrying the registered vars, so consequently making a bad registration.
An example of this is reloading the last page of they signup form (were they get the thanks message) , the session is already distroyed, but if they reload a new registration will be done without the variables. I just want to avoid this by checking if the user is under a session.