<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: WattaDumb Explains</title>
    <description>The latest articles on DEV Community by WattaDumb Explains (@wattadumb_explains).</description>
    <link>https://dev.to/wattadumb_explains</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261648%2Fbebd0c99-f852-4ffa-a259-7ee472516971.png</url>
      <title>DEV Community: WattaDumb Explains</title>
      <link>https://dev.to/wattadumb_explains</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wattadumb_explains"/>
    <language>en</language>
    <item>
      <title>How Does a Website Remember That You're Logged In? (Cookies &amp; Sessions Explained)</title>
      <dc:creator>WattaDumb Explains</dc:creator>
      <pubDate>Tue, 24 Nov 2026 02:38:49 +0000</pubDate>
      <link>https://dev.to/wattadumb_explains/how-does-a-website-remember-that-youre-logged-in-cookies-sessions-explained-1dlg</link>
      <guid>https://dev.to/wattadumb_explains/how-does-a-website-remember-that-youre-logged-in-cookies-sessions-explained-1dlg</guid>
      <description>&lt;p&gt;Have you ever wondered why a website remembers that you're logged in, even after refreshing the page?&lt;/p&gt;

&lt;p&gt;The answer lies in &lt;strong&gt;cookies and sessions&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with HTTP
&lt;/h2&gt;

&lt;p&gt;HTTP is stateless. This means that each request you send to a server is independent. By default, the server doesn't remember who you are from previous requests.&lt;/p&gt;

&lt;p&gt;So how do websites keep you logged in?&lt;/p&gt;

&lt;h2&gt;
  
  
  What are cookies?
&lt;/h2&gt;

&lt;p&gt;Cookies are small pieces of data stored by your browser. They can help websites remember information such as your session identifier, preferences and shopping cart.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are sessions?
&lt;/h2&gt;

&lt;p&gt;In a typical server-side session system, the server stores information about your authenticated session and gives your browser a unique session identifier.&lt;/p&gt;

&lt;p&gt;Whenever you make another request, your browser sends that identifier through a cookie, allowing the server to recognize your session.&lt;/p&gt;

&lt;h2&gt;
  
  
  How they work together
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;You log in to a website.&lt;/li&gt;
&lt;li&gt;The server verifies your credentials.&lt;/li&gt;
&lt;li&gt;The server creates a session.&lt;/li&gt;
&lt;li&gt;Your browser receives a cookie containing the session ID.&lt;/li&gt;
&lt;li&gt;Subsequent requests include the cookie, allowing the server to recognize your session.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Watch the animated explanation
&lt;/h2&gt;

&lt;p&gt;I've created a beginner-friendly animated video explaining how cookies and sessions work together, without unnecessary technical jargon.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Jry2b3nhAbg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Cookies and sessions are fundamental concepts in web development. Understanding them makes it easier to learn authentication, authorization and web security.&lt;/p&gt;

&lt;p&gt;WattaDumb Explains — Making complicated technology simple.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>security</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
