[eluser]Gewa[/eluser]
Hi, I made a custom register controller to make a registration, and for authorization I use Freakauth...
in the end of registration, i want to autologin the person and redirect him to the /myaccount/cabinet part of the website.
[/code]
$_POST['user_name']=$user_login;
$_POST['password']=$user_pass;
$this->load->library('session');
$this->session->set_flashdata('requested_page', base_url().'/myaccount/cabinet/');
$this->load->library('FAL_front', 'fal_front');
$this->_container = $this->config->item('FAL_template_dir').'template/container';
[/code]
This code autologin the user, but redirecting doesn;t work as I want. Why?
If you are an admin, you go to adminpanel, if no to Homepage...
((
Please help me to fix...