Chaima Posted July 29, 2015 Posted July 29, 2015 Hello everyone, I want to know how to add a button to allow users to log out of the site?
♥Tsimi Posted July 29, 2015 Posted July 29, 2015 if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); }
♥Tsimi Posted July 29, 2015 Posted July 29, 2015 :huh: I don't know what osCommerce version you have but you should have already a log out button inside the header. Once logged in it should show. The above code can be placed anywhere you like if you need an additional log out button.
Chaima Posted July 29, 2015 Author Posted July 29, 2015 Okay but once I'm logged it didn't show it's from the beggining and it's an old version of osccomerce! Can i add this lines in header.php ?? or application_top.php? Thank you
Recommended Posts
Archived
This topic is now archived and is closed to further replies.