Hi I have the same problem. Nobody knows how to solve this?
Hi I have the same problem. Nobody knows how to solve this?
This is because all the user's preferences have been cleared out during logoff, including their language selection.
I haven't tested this yet ... perhaps you would test and give feedback:
includes/modules/pages/logoff/header_php.php
starting around line 18, you have:replace that with:PHP Code:/**
* Check if there is still a customer_id
* If so, kill the session, and redirect back to the logoff page
* This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link
*/
if (!empty($_SESSION['customer_id'])) {
zen_session_destroy();
zen_redirect(zen_href_link(FILENAME_LOGOFF));
}
PHP Code:/**
* Check what language should be used on the logoff screen
*/
$logoff_lang = ($_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? 'language=' . $_SESSION['languages_code'] : '';
/**
* Check if there is still a customer_id
* If so, kill the session, and redirect back to the logoff page
* This will cause the header logic to see that the customer_id is gone, and thus not display another logoff link
*/
if (!empty($_SESSION['customer_id'])) {
zen_session_destroy();
zen_redirect(zen_href_link(FILENAME_LOGOFF, $logoff_lang));
}
Last edited by DrByte; 20 Jul 2006 at 07:11 PM.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
DrByte, thanksit is working for me
CzechBoy, how come it didn't work for you.
my log off problem is solved
however, if leave the computer logged in for a long time, when I click any link in the website, it takes me to main screen of the lang 1.
I think we are not far away from the permenant solution.
Yabora.
That's how it's designed to work. After 24 minutes, all the previous settings are discarded.Originally Posted by yabora
You could always change lang 2 to be your default...I think we are not far away from the permenant solution.
Why is this a problem?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thanks Ajeh to tell me this thread had the solution I wanted. It works for me.![]()