Skip to content

Commit

Permalink
[IC] repaired storeside login issue
Browse files Browse the repository at this point in the history
  • Loading branch information
datazen committed Aug 24, 2015
1 parent 3b99fc4 commit 6e31091
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions catalog/includes/classes/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@ public function start() {
} elseif ( isset($_COOKIE[$this->_name]) && (empty($_COOKIE[$this->_name]) || (ctype_alnum($_COOKIE[$this->_name]) === false)) ) {
$sane_session_id = false;
}

if ( $sane_session_id === false ) {
if ( isset($_COOKIE[$this->_name]) ) {
if ( isset($_COOKIE[$this->_name]) ) {
setcookie($this->_name, '', time()-42000, $this->getCookieParameters('path'), $this->getCookieParameters('domain'));
}

lc_redirect(lc_href_link(FILENAME_DEFAULT, null, 'NONSSL', false));
} else if (isset($_GET['lCsid']) && $_GET['lCsid'] != NULL || isset($_GET['qr']) && $_GET['qr'] == '1') {
$this->_is_started = true;
} else if (isset($_GET['lCsid']) && $_GET['lCsid'] != NULL && isset($_GET['qr']) && $_GET['qr'] == '1') {

$this->_is_started = true;
$this->_id = $_GET['lCsid'];
session_id($_GET['lCsid']);
session_start();
Expand Down

0 comments on commit 6e31091

Please sign in to comment.