[web-devel] Yesod. Cookie. Lookup

Nubis nubis at woobiz.com.ar
Wed Apr 27 21:19:12 CEST 2011


Hi Anton, you may want to look into the lookupCookie and lookupCookies
functions if you haven't done so already:
http://hackage.haskell.org/packages/archive/yesod-core/0.7.0.2/doc/html/Yesod-Request.html

(it's previous version of yesod but it should be the same)
you could use it directly inside your handler, something like this: (haven't
tested it though)

getYourRouteR = do
  maybeSomeVal <- lookupCookie "someName"
  ...

cheers
----nubis :)


On Wed, Apr 27, 2011 at 2:17 PM, Anton Cheshkov <acheshkov at gmail.com> wrote:

> Michael. Show me please how do to lookup cookies in yesod.
>
> Thanks.
>
> --
> Best regards,
> Cheshkov Anton
> Phone: +7 909 005 18 82
> Skype: cheshkov_anton
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110427/33ce4b01/attachment.htm>


More information about the web-devel mailing list