How to redirect using $this-session-userdata(country_territory) |
This is the coding in the Login Controller.
PHP Code: $data = array('user_id' => $result->user_id, And this is the coding in the Controller that I've tried but PHP wont accept the variable in redirect. PHP Code: $country = $this->session->userdata('country_territory'); I want to redirect to the country that exists in the database rather than IP address. Can anybody guide me? |
Welcome Guest, Not a member yet? Register Sign In |