just2comment Posted January 12, 2010 Share Posted January 12, 2010 Again, I don't know if this is the right forum, but anyway...At least the first Ajax examples starting athttp://www.w3schools.com/ajax/ajax_example_suggest.aspconstruct the request including specifically a "sid" parameter as inurl=url+"&sid="+Math.random();but it is never used in the server side, e.g., ASP and PHP server examples athttp://www.w3schools.com/ajax/ajax_source.aspIs the "sid" useless? Am I missing something? Link to comment Share on other sites More sharing options...
justsomeguy Posted January 12, 2010 Share Posted January 12, 2010 They just add a random number onto the URL to make sure the browser doesn't cache it, that's all it's used for. They mention that here but don't name sid specifically: Adds a random number to prevent the server from using a cached fileYou could read that value on the server but, being a random number, it's not going to be very useful. Link to comment Share on other sites More sharing options...
just2comment Posted January 12, 2010 Author Share Posted January 12, 2010 Right, thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.