<p>You can use the <a href="https://plugins.craftcms.com/fetch" rel="nofollow noreferrer">Fetch plugin</a> to make HTTP requests from a template in Craft 3 and there's a <a href="https://plugins.craftcms.com/cookies" rel="nofollow noreferrer">Cookies</a> plugin for reading and writing cookies via a template that should do what you want.</p>

CC BY-SA 4.0
2019-04-11T23:39:23.787Z
2019-04-11T23:39:23.787Z
Brad Bell
<p>I am using a combination of two Craft 2 plugins, Cookies and Rest to get the logged in status of a user. What is the recommended way of doing this in Craft 3?</p>

<pre><code>{% set userReq =
  craft.rest.request
    .headers({
      Cookie: cookie
    })
    .url("https://api2.lumi.com/auth/current")
    .send()
%}
</code></pre>

<plugins><cookies>
Is there an alternative to the Dukt Rest plugin for Craft 3?
# Is there an alternative to the Dukt Rest plugin for Craft 3?

(Asked by: username_0 on 2019-04-10)

I am using a combination of two Craft 2 plugins, Cookies and Rest to get the logged in status of a user. What is the recommended way of doing this in Craft 3?
{% set userReq =
  craft.rest.request
    .headers({
      Cookie: cookie
    })
    .url("https://api2.lumi.com/auth/current")
    .send()
%}

**Tags:** plugins, cookies

---

## 1 answers

### Answer by username_1 on 2019-04-11. Score: 0 | Accepted answer

You can use the [Fetch plugin](https://plugins.craftcms.com/fetch) to make HTTP requests from a template in Craft 3 and there's a [Cookies](https://plugins.craftcms.com/cookies) plugin for reading and writing cookies via a template that should do what you want.


---

