Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6579325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:53:03+00:00 2026-05-25T15:53:03+00:00

I am storing $lightopenid->identity in a codeigniter session as follows: $lightopenid = new Lightopenid;

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:53:03+00:00Added an answer on May 25, 2026 at 3:53 pm

    You have to store the email in the session. LightOpenID doesn’t store anything. You’d have to redo the whole authentication in order to retrieve the email address only from the identity.

    So, something like that:

    if($openid->validate()) {
        $attributes = $openid->getAttributes();
        $this->session->set_userdata('open_id', $openid->identity);
        $this->session->set_userdata('email', $attributes['email']);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Storing the session id on the client computer is no problem and is very
I am storing the dates in a SQLite database in this format: d-MMM-yyyy,HH:mm:ss aaa
Storing an array submitted from forms stores elements with null values. Is there a
Storing the entire session in a cookie has been standard in Rails for the
Is storing a list of 1000 instance of my custom class to the session
im storing some settings for objects in an array. the id's of objects are
For storing data offline WebApp can use: session storage, advanced version of cookies key/value
Recently, I noticed that when storing the resulting identity in my database, Google would
When storing the session in the database via $config['sess_use_database'] = TRUE; Is the size
After reading this article Storing C++ template function definitions in a .CPP file ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.