base_url turns up twice after redirect |
[eluser]cybercy[/eluser]
hi. i use DX_Auth for login in my application, and after logging in, i want to take the user back to the page where he came from. Please note that I use a lightbox login window. It works fine, but after the redirect, the URL is incorrect, it shows my base_url and then the full path of the referrer. Like this: http://localhost/production/http://local...location/9 The controller: Code: function login() What do i do wrong? Please help! Thanks
[eluser]designfellow[/eluser]
Hi, you can set a session variable before redirecting to login. $this->session->set_userdata('referring_page',uri_string()); after successfully logged in u can simply redirect like this. redirect($this->session->userdata('referring_page') ); Happy Coding, DesignFellow
[eluser]cybercy[/eluser]
Thanks!!!!! You cannot imagine how many hours I was playing around with this, and with your hint, it works. thanks again. |
Welcome Guest, Not a member yet? Register Sign In |