Jahia in English > How to set/get a...

0 (0 Good)
0 (0 Bad)

How to set/get a cookie

by  mxlab »  2013/02/27 18:22

Hi all! How can I set/get a cookie? If I 'm in a jsp script I can't write/read any info to/from a cookie, is it normal? I'm using jahia 6.6.1.0. Is there any specified api? Thanks a lot!
  • How to set/get a cookie
    2013/02/27 18:22

    mxlab Hi all! How can I set/get a cookie? If I 'm in a jsp script I can't write/read any info to/from a cookie, is it normal? I'm using jahia 6.6.1.0. Is there any specified api? Thanks a lot!

  • Number of messages  33
    Registration date Feb 27, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: How to set/get a cookie

    by  dgriffon »  2013/03/06 10:39

    hello,

    you have an example of how to set/read a cookie in javascript in the poll module :

    https://github.com/Jahia/modules-set/tree/master/poll/src/main/webapp

    look at javascript/poll.js and jnt_poll/html/poll,jsp

    best regads

    David 

    David Griffon (dgriffon)

    Number of messages  76
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page