alwin Posted October 11, 2008 Share Posted October 11, 2008 <html> <HEAD><TITLE></TITLE> <link rel="StyleSheet" type="text/css" href="mystyle1.css"> </HEAD> <BODY> <table class="frametable"><TR><TD> <label class="label1">Franchisee</label></TD></TR> <TR><TD><a target="_parent" href="add.php" onclick="sessionclear()">Add New Franchisee</a></TD></TR> </table> <? session_unregister("fid"); ?> </BODY> </html> I have to clear the session when the user click on the link.I tried this one .But the sesion is still there.How can I clear the session when clicking on the link? Quote Link to comment https://forums.phpfreaks.com/topic/127946-pls-help-me/ Share on other sites More sharing options...
Daniel0 Posted October 11, 2008 Share Posted October 11, 2008 Put the session_unregister() on a new page and have the link point to that page. Quote Link to comment https://forums.phpfreaks.com/topic/127946-pls-help-me/#findComment-662541 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.