jquery ajax logout security
<p>When a user logs in, a session id is generated accordingly. There is a 'logout' link on the page. On clicking the link a jquery ajax method is called to execute a php file which just unsets the session id variable.</p>

<p>If any user uses Firebug or any such tool to see the called-in file address, then s/he can just put the file address in the address bar and the press the 'Enter' key to execute the php file which will consequently log the user out which I do not want to happen.</p>

<p>How to prevent the user from doing that? Http_referrer or any such thing?</p>

<p>Scripting language is php.</p>
