Here,I am doing email verification through gmail. When I click on verify link then it redirect to the intended page ,but fail to maintain the flash data.I want that if anyone click on the click then it goes the pages and after verification it shows to the user that "Your email has been Confirmed". I need to know that how to maintain the flash data after page redirection from gmail.
public function sendMail()
{
$this->session->keep_flashdata('message');
$data=$this->uri->segment(2);
if($this->home_model->email_verify($data)){
$this->session->set_flashdata('message','Your Email address has been confirmed');
redirect('home/login','refresh');
}
else
{
$this->session->set_flashdata('message','Something Went wrong');
redirect('home/login','refresh');
}
}