Subversion Repositories SmartDukaan

Rev

Rev 11537 | Rev 11559 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11537 Rev 11540
Line 184... Line 184...
184
		}
184
		}
185
 
185
 
186
		// Is the session current?
186
		// Is the session current?
187
		if (($session['last_activity'] + $this->sess_expiration) < $this->now)
187
		if (($session['last_activity'] + $this->sess_expiration) < $this->now)
188
		{
188
		{
189
			$this->sess_destroy();
189
			// $this->sess_destroy();
190
			return FALSE;
190
			// return FALSE;
191
		}
191
		}
192
 
192
 
193
		// Does the IP match?
193
		// Does the IP match?
194
		if ($this->sess_match_ip == TRUE && $session['ip_address'] !== $this->CI->input->ip_address())
194
		if ($this->sess_match_ip == TRUE && $session['ip_address'] !== $this->CI->input->ip_address())
195
		{
195
		{
Line 222... Line 222...
222
			$query = $this->CI->db->get($this->sess_table_name);
222
			$query = $this->CI->db->get($this->sess_table_name);
223
 
223
 
224
			// No result? Kill it!
224
			// No result? Kill it!
225
			if ($query->num_rows() === 0)
225
			if ($query->num_rows() === 0)
226
			{
226
			{
227
				$this->sess_destroy();
227
				// $this->sess_destroy();
228
				return FALSE;
228
				// return FALSE;
229
			}
229
			}
230
 
230
 
231
			// Is there custom data?  If so, add it to the main session array
231
			// Is there custom data?  If so, add it to the main session array
232
			$row = $query->row();
232
			$row = $query->row();
233
			if (isset($row->user_data) && $row->user_data != '')
233
			if (isset($row->user_data) && $row->user_data != '')