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 6148767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:20:15+00:00 2026-05-23T19:20:15+00:00

I am doing a project in which user cal log in by registering to

  • 0

I am doing a project in which user cal log in by registering to the site as well as using facebook login information .
I am able to log in using facebbook login information but how will I save the information of the user so that next time he logs in
the site will show his information (like in stackoverflow) . I am using PHP – smarty .

print_r($_SESSION) is

     Array
(
    [fb_117743971608120_state] => 9cec0afaeea766a4c604308d750cae27
    [fb_183884308338472_code] => 085FCZlNVcOmjOb5-oejUDGSXEypJf6K5gOGCUjbFDg.eyJpdiI6Ii1nODJpOWFuZHh0bUh4VzNVc3d3OEEifQ.1DvUVqsbPFAhK9lgOYvwBH9qrpQkjYhbA9s8nVxCgnefVyGQX3KjSSCEiN1Rs0GfnGqgwYESDuPlDjEpPRGhkK5kn4U4CExgm22URCr45EM44vjL5wEFyT8WbWzPoE0_tYSkHgmEc5TPNBP1GB1z-g
    [fb_183884308338472_access_token] => 183884308338472|2.AQB3ExZ8y5FeCiR5.3600.1310461200.1-100000525094244|JxU5yIl32MnS2jWuci_p6qllPEI
    [fb_183884308338472_user_id] => 100000525094244
)
  • 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-23T19:20:15+00:00Added an answer on May 23, 2026 at 7:20 pm

    I haven’t worked with Facebook logins, but I am going to presume that it operates in a similar fashion to any other login. That is, you’ll need to utilize some sort of persistent structure that can be utilized on a visitors return.

    For instance:

    <?php
        // Start the session (important!)
        session_start();
    
        // Set the session on login
        $_SESSION['login_token'] = "some_identification_info";
    
        // You can check to see if the login was successful, if it is
        // then the user is logged in. This will persist across pages, and
        // you can set the "time" to expire.
    ?>
    

    You may also take a look at cookies. Please note that the above code was not tested, I just typed it out and its 2AM so there is a very real chance I missed something. Take a look at the documentation for Sessions and Cookies.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently doing a project, in which I need to stop the user
I am using Drupal 6.x, I installed successfully Juitter http://drupal.org/project/juitter which is doing exactly
I'm doing a project which uses jQuery,MVC . for that i'm using the jquery
I'm doing an AutoLisp project which uses long associative structures to do heavy geometrical
I am doing a project in which I require btree or b+tree data structure.
I am doing a project, for which I need to know all the wikipedia
For this university project I'm doing (for which I've made a couple of posts
I'm doing a project which is similar to the Download Manager. One of the
I'm currently working on a project in which at one point, the user may
I am doing a project in Java Swing. I have a JDialog which contains

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.