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 answers above, including the accepted one, are wrong.

Session cookies don't expire on the browser close because of some [design decisions](https://code.google.com/p/chromium/issues/detail?id=128513#c28) made by prominent browsers developers.

Basically, session expiring cookies interfered with the current browser behavior, where a browser downloads updates and then asks to be restarted.
The user after such updates restarts the browsers and wants to experience an as minimal disruption as possible.
Keeping the original session cookies behavior, however, would instantly clear a number of cookies during the browser update => restart process and would disrupt user experience.
Therefore design decisions were made so that now the default behavior is to **not** clear the session cookies. Advanced users who want to return to the original behavior usually have to enable specific backward compatibility options or explicit cookie clear options.
[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.