artanis
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Artanis] Using Session and Cookies in the Same Call


From: Nala Ginrut
Subject: Re: [Artanis] Using Session and Cookies in the Same Call
Date: Tue, 28 May 2019 00:23:00 +0800
User-agent: mu4e 1.3.2; emacs 26.1

Hi Jonathan!

Jonathan Schmeling writes:

> If it isn't too much effort – any –, how would you pass the session data
> to the redirect via the new cookies construct you added? I have a guess
> but I figure, rather than guess, I can just verify for certainty.

The safest way is to set the header in redirect-to by yourself.
Although it's possible to let redirect-to detect cookies from `rc'
directly, it's not safe since the old `rc' may contain the information
you don't want to send.

>
> Lastly, (I don't think I ever asked this, yet, nor saw it in the doc.)
> is there a way to hook a Guile REPL into a running Artanis instance?
> I'm…not able to remember why I've wanted this, in the past…but I have so
> I figured I'd ask if it was feasible; such that all the
> objects/libraries in use by the running Artanis instance can be accessed
> by the REPL.

If you want to debug your Artanis application in REPL, please follow
this:

----------------------cut-------------------------
;; get into your Artanis app folder and run guile
(import (artanis artanis))
(load "ENTRY")
(run)
----------------------end-------------------------

If you encounter any problem, the server will pause and let you use
REPL. If you want to continue, just type ctrl+d till it run again.

Best regards.


> Thanks for any help!
>
> Jonathan


--
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]