Adding some custom session variables to a JavaScript object
<p>I currently have a custom session handler class which simply builds on php's session functionality (and ties in some mySQL tables).</p>

<p>I have a wide variety of session variables that best suits my application (primarily kept on the server side). Although I am also using jQuery to improve the usability of the front-end, and I was wondering if feeding some of the session variables (some basics and some browse preference id's) to a JS object would be a bad way to go.</p>

<p>Currently if I need to access any of this information at the front-end I do a ajax request to a php page specifically written to provide the appropriate response, although I am unsure if this is the best practice (actually I'm pretty sure this just creates a excess number of Ajax requests).</p>

<p>Has anyone got any comments on this? Would this be the best way to have this sort of information available to the client side?</p>
