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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:31:22+00:00 2026-06-03T02:31:22+00:00

I have built login systems in php and I always use session to login

  • 0

I have built login systems in php and I always use session to login the user. As a results of using session, my browser always creates a cookie called PHPSESSID. And if the user checks the remember me option, I will set username and password into cookies. Please note that these cookies are accessible in the browser.

Since, I always like to see how others do their login system, I decided to test this fact with facebook. I logged into my facebook, without checking the Keep me logged in and then I check the cookies but I didn’t see PHPSESSID cookie. Does anyone know why?

For the second time, I logged into facebook, this time I checked the keep me logged in. Then I checked the cookies and I saw the same cookies with same expiry date as in my first try.

if the first and second try results in same cookies, then what is the difference? Or better say what is the point of using it?

  • 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-06-03T02:31:23+00:00Added an answer on June 3, 2026 at 2:31 am

    And if the user checks the remember me option, I will set username and password into cookies.

    Please, don’t do that. Passwords and other sensitive data shouldn’t be saved into cookies.

    Since, I always like to see how others do their login system, I decided to test this fact with facebook. I logged into my facebook, without checking the Keep me logged in and then I check the cookies but I didn’t see PHPSESSID cookie. Does anyone know why?

    A session cookie doesn’t have to be named PHPSESSID. I show 11 cookies from Facebook, several of which have data that might be session information.

    if the first and second try results in same cookies, then what is the difference? Or better say what is the point of using it?

    The remember-me functionality could easily be server-side.

    There’s more than one way of doing pretty much everything in web development. Facebook’s a complex system, and as such they’re sometimes going to use more complex solutions than is necessary on your smaller projects.

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

Sidebar

Related Questions

I have a web-based system built with user login data based on session variables.
I have a web application that needs to be built using PHP/MySQL. The application
I have built a CMS system using jQuery and PHP, it has worked consistently
I built a Login application in which I have 3 Windows Log In Windows
I have built UI, its like a search engine for BioProcess/Disease--> Genes. e.g., User
I am creating a custom CMS and have built a login system and was
I have made a MVC application that uses the built-in ASP.NET login functions. It
I have an engineering firm and our website was built using Visual Studio 2010
I built my own login system, and I also have a MediaWiki installed for
We have a jquery/php/mysql system that allows a user to log in and review

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.