D
Deno

help

Set a cookie in GET and retrieve in POST

AArkatme8/2/2023
been tryinig to do this for a couple hours now. Basically I want a way to return the user to the previous page upon successful login. Currently I'm trying to set a cookie of "last_page" in GET and then reading it in POST when the user clicks Login.
IioB8/2/2023
This sounds like a good approach, what seems to be the problem?
Pporridgewithraisins8/3/2023
Typically this is done with query parameters. But cookies should work too
AArkatme8/3/2023
Ended up using sessionStorage. That worked in the end.

Looking for more? Join the community!