# \[PHP/MySQL\] How does the computer "remember" if you are logged in or not?

**URL:** <https://forum.kirupa.com/t/php-mysql-how-does-the-computer-remember-if-you-are-logged-in-or-not/71461>\
**Category:** programming\
**Created:** [November 25, 2004, 12:58am UTC](https://forum.kirupa.com/t/php-mysql-how-does-the-computer-remember-if-you-are-logged-in-or-not/71461 "2004-11-25T00:58:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goldy2006](https://avatars.discourse-cdn.com/v4/letter/g/e8c25b/32.png) [@goldy2006](https://forum.kirupa.com/u/goldy2006)\
**Post date:** [November 25, 2004, 12:58am UTC](https://forum.kirupa.com/t/php-mysql-how-does-the-computer-remember-if-you-are-logged-in-or-not/71461/1 "2004-11-25T00:58:52Z")

</div>

I wanted to create a login and a user database in php and mysql.  
I successfully created a php page which can add a username and password to the “users” table in a my\_db database and then recall it and every other screenname on the next page.

**But I don’t understand how the computer knows if you are “logged in”. Ⓜ  
For example, I do not have to log in every time I click on a link to a post here at [kirupaforum.com](http://kirupaforum.com); however, when I first arrive at the site I do have to type in my password and username.  
Why Is That? :h:  
In other words, how does the computer remember that i’m logged in?**

Thanks,  
Matt
