Parikesit Posted April 12, 2005 Posted April 12, 2005 Litle tips for unregistering session. Some time we use tep_session_is_registered() function when would to unregister the session, like: if (tep_session_is_registered('payment')) tep_session_unregister('payment'); For short scripting, we could add tep_session_is_registered() in tep_session_unregister() function in file: catalog/includes/functions/sessions.php Line 84: function tep_session_unregister($variable) { return session_unregister($variable); } change to: function tep_session_unregister($variable) { if (tep_session_is_registered($variable)) { return session_unregister($variable); } } Cheers, zaenal recent contributions: mySQLi extension for osc 2.X, OPI: advanced image handling (ajax, thumbnail, watermark, etc), and other contributions all here
Recommended Posts
Archived
This topic is now archived and is closed to further replies.