No, because loading is part of the request and is executed before PHP even starts playing.
Around this, there may be a method using the technique of those PHP / Perl-based boot loaders that somehow connect to the boot process, but then it may not be either. Especially if you are using a different web server.
I would do an Ajax-based quick check for the correct session and bind it to the submit event of the form you are loading the file into. This may take half a second, but is completely unobtrusive to the user.
source share