Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter redirect to localhost after online migration

(This post was last modified: 11-27-2015, 12:49 PM by JackIlpazzo.)

(11-27-2015, 12:14 PM)arma7x Wrote: The problem occur when redirect to login page which mean your auth system? Did you use community auth or tank auth? Or using your own auth system?

Now for example if you try to access the link do not get the localhost, maybe it's something related to the server hostinger? I see that sometimes it does, I restarted my PC for some reasons and now I felt the problem does not occur, you can try?
However, the login system uses models of CodeIgniter, through features that allow you to see if the user exists in the database I execute an ajax request. The ajax request will delay the url we are discussing if the privileges are only for the customer, otherwise will send back to the backend that corresponds to this:


I repeat, in local with Bitnami all works. But online there is some problem. I really can not understand what can be, I developed this CodeIgniter 2.1.4 and I used the library EasyAppointments you can find here:


I also tried to install the library without my changes and I get the same results but others not. If you can help me to come out I'd be really grateful I do not know what it is.


In the index function are checked che permission of the user:

PHP Code:
$this->session->set_userdata('dest_url'$this->config->item('base_url') . 'backend');
       if (!$this->hasPrivileges(PRIV_APPOINTMENTS)) return; 


I understand what causes the redirect to localhost, practically if the user is logged on with these credentials:

Username: Test
Password: 123456789

and put this url:


is restored to localhost, on the contrary if the user has not logged in and attempt to access the url above, you will be redirected to the localhost. Probably the problem is in the function index. I'm investigating the cause.

Messages In This Thread
RE: CodeIgniter redirect to localhost after online migration - by JackIlpazzo - 11-27-2015, 12:37 PM

Theme © iAndrew 2016 - Forum software by © MyBB