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: 
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.
[Look here](http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime). 

"The expiration timestamp is set relative to the server time, which is not necessarily the same as the time in the client's browser."

Could be that... dunno.