Question: > 
> **Possible Duplicate:**  
> 
> [How can I upload files asynchronously with JQuery?](https://stackoverflow.com/questions/166221/how-can-i-upload-files-asynchronously-with-jquery) 
> 
> 
> 

I have a file upload field, after the image was selected, I make a jquery ajax post to an aspx page's page method. My question is, how can I pass that image via jquery? When I do `$(this).val()` it only gets the file name. I want to pass the image object itself.

Answer: 
The cookie should be deleted, because you set his lifetime to 0.

Maybe there is still a firefox-process running, take a look into the taskmanager.
Also you should terminate your script after header('Location:'), otherwise it'll just continue running and output the "secure" page to the client (or if you are lucky to the web server that will hopefully ignore it) anyway and consuming resources.