View Full Version : logout problem with secure connection
When users are logged in to a secure connection (https) and they click Logout, the redirect seems to go on infinitely.
Please fix this issue?
Thank you.
dannygoux
11-22-2007, 10:38 AM
"When users are logged in to a secure connection (https) and they click Logout, the redirect seems to go on infinitely."
Chris - you have not answered this email yet - is there a fix that we can do to get this to work correctly?
Thanks
Danny
TWT-Chris
11-22-2007, 11:22 AM
I have not seen this. Its best to open a ticket.
dannygoux
11-22-2007, 11:37 AM
I figured it our - if you are running your site with SSL - make the following changes to index.php starting at line 245
case 'logout':
$sess->destroy();
// if ($_SERVER['SERVER_PORT'] == 443 || $_SERVER["HTTPS"] == "on") header("location: ".$settings[shopurl]."index.php?l=logout"); //
// else header("location: ".$settings[shopurl]); exit; //
header("location: ".$settings[shopurl]."index.php"); // this line was added //
break;
The original case created an infinite loop sending "llogout" to index.php if SSL. I removed the check for port 443 and https = on -did not want to waste time running the if statement. The change ends the session and then returns the user to the homepage.
revlow
04-05-2010, 03:46 PM
Hi dannygoux,
Thank you! Was having a major problem with this and your recommendation fixed it! Again, many thanks.
Powered by vBulletin® Version 4.1.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.