<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged cookies</title>
<link>https://coderlegion.com/tag/cookies</link>
<description>Powered by Question2Answer</description>
<item>
<title>Difference between session and cookies in php</title>
<link>https://coderlegion.com/27805/difference-between-session-and-cookies-in-php</link>
<description>&lt;p&gt;&lt;strong&gt;
    Today, we're going to discuss about two common things, that are &lt;em&gt;Session&lt;/em&gt; and &lt;em&gt;Cookies&lt;/em&gt;, which are used in the website to keep track of the information provided by the users, but for different purposes. A lot of beginners are confused about their characteristics, functionalities, and differences. In this study blog, we'll explore both of them in a more comprehensive way.
&lt;/strong&gt;&lt;/p&gt;
&lt;div id=&quot;toc-div&quot;&gt;
  &lt;h4&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;&lt;strong&gt; Table of Contents: &lt;a id=&quot;toc-toogle&quot; class=&quot;open&quot;&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h4&gt;
  &lt;div id=&quot;toc-list&quot;&gt;
    &lt;ol&gt;
      &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774610&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Introduction to Session and Cookies&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774611&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Difference between Session and Cookies&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      
        &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774612&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Storage Location&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774613&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Security&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774614&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Lifetime&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774615&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Stored Data Type&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774616&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Purpose of Usage&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      
      &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774617&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;The Conclusion&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;#_Toc123774618&quot;&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;The Reference&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;section&gt;
  &lt;h2&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774610&quot; id=&quot;_Toc123774610&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Introduction to Session and Cookies&lt;/span&gt; &lt;a id=&quot;TypeError-str-object&quot; style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774610&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h2&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;p&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;&lt;em&gt;Session&lt;/em&gt; is used to &lt;strong&gt;store information across the multiple pages of a website momentarily on the server-side files&lt;/strong&gt;. It's useful when the website needs to track who is the current user across multiple pages of the same website. Let's look at the example:&lt;/span&gt;&lt;/p&gt;
      &lt;ol&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A user is using a POST method to send a request to the server for logging in the website.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;The information provided is sent to the server for validation via HTTP context.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;However, the HTTP context doesn't maintain the state of a user. As a result, the server is able to validate the current user at the moment only when the request is sent. The other pages are not informed about who is the current user.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;To overcome this limitation, the server will generate a unique session ID for that particular user and sent back to be stored in the browser in form of &lt;em&gt;Cookie&lt;/em&gt;.&lt;/span&gt;
        &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Whenever the user navigates across different pages, as long as the user is showing the consistent and valid session ID, different pages may recognize the same user.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Finally, a session will end and the cookie is deleted (if expiration date is not set) when a user log out or the application is shut down.&lt;/span&gt;&lt;/li&gt;
      &lt;/ol&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;p&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt; is used to &lt;strong&gt;remember the user information such as browsing history, user preferences and login credentials on the client-site computer&lt;/strong&gt;. It can only store maximum of &lt;em&gt;&lt;strong&gt;4KB&lt;/strong&gt;&lt;/em&gt; data in the browser. The server will forget everything about the user such as his/her credentials and activities after the connection breaks. Hence, &lt;em&gt;Cookies&lt;/em&gt; are very useful when you want a browser to &quot;remember&quot; the user. Let's look at the example:&lt;/span&gt;&lt;/p&gt;
      &lt;ol&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A user, called &quot;Alex&quot; has chosen &lt;strong&gt;Keep me signed in&lt;/strong&gt; and logged in to a website, his login credentials are stored in a &lt;em&gt;Cookies&lt;/em&gt; and the server creates a session ID for him and sent back to the browser.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;While navigating across multiple pages of the website, he's able to use his unique session ID to verify he's the current user.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;After a few moment, he feels tired and close the browser.&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;When he comes back again and open the website, the browser will send a request to the server to get the web page, the &lt;em&gt;Cookies&lt;/em&gt; belongings to that page will be added to the request via HTTP headers.&lt;/span&gt;
        &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Since &lt;em&gt;Cookies&lt;/em&gt; remembers his login credentials, it'll check the informtion against the server&lt;/span&gt;, and thus log in &quot;Alex&quot; automatically.&lt;/li&gt;
        &lt;li&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;The lifetime of &lt;em&gt;Cookies&lt;/em&gt; can be set and it's deleted when its lifetime has passed.&lt;/span&gt;.&lt;/li&gt;
      &lt;/ol&gt;
      &lt;div style=&quot;margin-top: 15px&quot; class=&quot;div-purple&quot;&gt;
        &lt;span class=&quot;alert-header&quot;&gt;Note&lt;/span&gt;
        &lt;span class=&quot;alert-body&quot;&gt;Since &lt;em&gt;Cookies&lt;/em&gt; are stored on client-site computer, it can only be accessed by the user that initially created it. Other user cannot see it.&lt;/span&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;p&gt;&lt;span style=&quot;font-family: arial,helvetica,sans-serif;&quot;&gt;Now, we've some basic understanding on what is &lt;em&gt;Session&lt;/em&gt; and &lt;em&gt;Cookies&lt;/em&gt;. Let's go through their differences.&lt;/span&gt;&lt;/p&gt;
&lt;/section&gt;
&lt;section&gt;
  &lt;h2&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774611&quot; id=&quot;_Toc123774611&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Difference between Session and Cookies&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774611&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h2&gt;
  &lt;p&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Although both are used to track the information provided by the users, they still have some distinct differences. Let's see one by one:&lt;/span&gt;&lt;/p&gt;
  &lt;h3&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774612&quot; id=&quot;_Toc123774612&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Storage Location&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774612&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Session&lt;/em&gt; is stored as server-site files temporarily on the server. It'll be deleted when the application is shut down or the user logged out.&lt;/span&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Cookies&lt;/em&gt; is stored as a client-site files on the user's computer. It'll be deleted when the expiration date has reached.&lt;/span&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;h3&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774613&quot; id=&quot;_Toc123774613&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Security&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774613&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Session&lt;/em&gt; is more secure compare to a &lt;em&gt;Cookies&lt;/em&gt; because it's on server-site and cannot be tampered easily. Besides, the data in a &lt;em&gt;Session&lt;/em&gt; is encrypted and converted to binary form in the server.&lt;/span&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif&quot;&gt;A &lt;em&gt;Cookies&lt;/em&gt; is less secure because it's stored in the form of &lt;strong&gt;string text file&lt;/strong&gt; on the client's computer. Whenever an unauthorized user get access to the system, he can alter the data easily.&lt;/span&gt;
      &lt;div style=&quot;margin-top: 15px&quot; class=&quot;div-pink&quot;&gt;
        &lt;span class=&quot;alert-header&quot;&gt;Caution&lt;/span&gt;
        &lt;span class=&quot;alert-body&quot;&gt;When you choose &quot;&lt;strong&gt;&lt;em&gt;Keep me logged in&lt;/em&gt;&lt;/strong&gt;&quot;, if someone has stolen the unique identifier in the cookies, it's called &lt;em&gt;cookie stealing&lt;/em&gt; and now they can access your account. Always be aware of this option! &lt;/span&gt;
      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;h3&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774614&quot; id=&quot;_Toc123774614&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Lifetime&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774614&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Session&lt;/em&gt; will be deleted once the user logs out or the application is shut down.&lt;/span&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Cookies&lt;/em&gt; is deleted when the user specified expiration date has passed.&lt;/span&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;h3&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774615&quot; id=&quot;_Toc123774615&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Stored Data Type&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774615&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Session&lt;/em&gt; stores the any type of value or the data type of an Object.&lt;/span&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;A &lt;em&gt;Cookies&lt;/em&gt; can only stores data in &quot;string&quot; type only.&lt;/span&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  &lt;h3&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774616&quot; id=&quot;_Toc123774616&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;Purpose of Usage&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774616&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Session&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;
        A &lt;em&gt;Session&lt;/em&gt; is used to track an user's activity over a period of time. It's used to store the specific information of a user which should be consistent across multiple pages of a website. The example can be &lt;em&gt;login status&lt;/em&gt;, &lt;em&gt;user preferences&lt;/em&gt;, and &lt;em&gt;shopping cart&lt;/em&gt;. When a user logs in the website, a session is generated in the server-site and the unique session ID is generated and stored in the user's devices as a cookie.
      &lt;/span&gt;
    &lt;/li&gt;
    &lt;li style=&quot;margin-top: 10px;&quot;&gt;
      &lt;h3&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif; color: rgb(185, 106, 217);&quot;&gt;&lt;em&gt;Cookies&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h3&gt;
      &lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;
        A &lt;em&gt;Cookies&lt;/em&gt; are used to store user's information in their computer or mobile device to &lt;strong&gt;&quot;remember&quot;&lt;/strong&gt; their information such as tracking &lt;em&gt;login information&lt;/em&gt;, &lt;em&gt;user behavior&lt;/em&gt; and storing &lt;em&gt;user preferences&lt;/em&gt;. When the next time they visit the same website, the browser'll send the &lt;em&gt;Cookies&lt;/em&gt; along with the request to get the web page which compromises of more personalized and desired data for that particular user.&lt;/span&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
  

  &lt;section&gt;
    &lt;h2&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774617&quot; id=&quot;_Toc123774617&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;The Conclusion&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774617&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h2&gt;
    &lt;p&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;In this study blog, we've learned what's &lt;em&gt;Session&lt;/em&gt; and &lt;em&gt;Cookies&lt;/em&gt;, what are their differences in term of &lt;em&gt;storage location&lt;/em&gt;, &lt;em&gt;security&lt;/em&gt;, &lt;em&gt;lifetime&lt;/em&gt;, &lt;em&gt;stored data type&lt;/em&gt;, and &lt;em&gt;purpose of usage&lt;/em&gt;. Bear in mind, both of them have their own pros and cons, but &lt;em&gt;Session&lt;/em&gt; is more secure compared to &lt;em&gt;Cookies&lt;/em&gt;. Hence, you should choose which one to use according to your own condition.&lt;/span&gt;&lt;/p&gt;
  &lt;/section&gt;

  &lt;section&gt;
    &lt;h2&gt;&lt;a class=&quot;custom_anchor&quot; name=&quot;_Toc123774618&quot; id=&quot;_Toc123774618&quot;&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;The Reference&lt;/span&gt; &lt;a style=&quot;color: blue;&quot; rel=&quot;nofollow&quot; href=&quot;#_Toc123774618&quot;&gt;#&lt;/a&gt;&lt;/strong&gt;&lt;/h2&gt;
    &lt;p&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;
        You may go through this reference for more information:
      &lt;/span&gt;&lt;/p&gt;
    &lt;ol&gt;
      &lt;li&gt;&lt;em&gt;&lt;span style=&quot;font-family: arial, helvetica, sans-serif;&quot;&gt;What's Session and Cookies: &lt;/span&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.oracle.com/en/middleware/webcenter/sites/12.2.1.3/wbcsd/sessions-and-cookies1.html#GUID-F8F240F3-E769-4B8C-8B7C-3886010D27BE&quot; target=&quot;_blank&quot;&gt;https://docs.oracle.com/en/middleware/webcenter/sites/12.2.1.3/wbcsd/sessions-and-cookies1.html#GUID-F8F240F3-E769-4B8C-8B7C-3886010D27BE&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/section&gt;&lt;/section&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/27805/difference-between-session-and-cookies-in-php</guid>
<pubDate>Sun, 20 Sep 2026 07:36:12 +0000</pubDate>
</item>
</channel>
</rss>