Subversion Repositories SmartDukaan

Rev

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

Rev 10582 Rev 10693
Line 102... Line 102...
102
		}
102
		}
103
		setCache($configdata['module'],$cachemodule,$data['response']);
103
		setCache($configdata['module'],$cachemodule,$data['response']);
104
		if(isset($data['response']['response']['login']['authorized']))
104
		if(isset($data['response']['response']['login']['authorized']))
105
		{
105
		{
106
			$this->session->set_userdata('authorized',$data['response']['response']['login']['authorized']);
106
			$this->session->set_userdata('authorized',$data['response']['response']['login']['authorized']);
107
			$this->session->set_flashdata(array('msg'=>$data['response']['response']['login']['msg']));
107
			//$this->session->set_flashdata(array('msg'=>$data['response']['response']['login']['msg']));
108
			$location = $this->session->userdata('location');
108
			$location = $this->session->userdata('location');
109
      //print_r($location)
-
 
110
			if(isset($location) && !empty($location)){
109
			if(isset($location) && !empty($location)){
111
				$this->session->unset_userdata('location');
110
				$this->session->unset_userdata('location');
112
				redirect($location);
111
				redirect($location);
113
			}
112
			}
114
			else{
113
			else{