I am storing $lightopenid->identity
in a codeigniter session as follows:
$lightopenid = new Lightopenid;
$lightopenid->required = array('contact/email');
if ($lightopenid->validate()) {
$google_open_id = $lightopenid->identity;
$this->session->set_userdata('google_open_id', $google_open_id);
}
In a separate function in my controller I would like to retrieve the user's email.
print_r($this->session->userdata('google_open_id'));
will show me the identity link but how do I retrieve the email from it?
Do I need a new instance of lightopenid
?
Any suggestions?