Keil Logo

Webserver using Cookies

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Steffen Schmid
Posted
6-Feb-2019 18:52 GMT
Toolset
ARM
New! Webserver using Cookies

Hi,

Has anyone successfully used cookies along with the HTTP server of Net Component 7.x, and if yes, how?
Using cookies involves modifying the header part of html pages, which is somewhat restricted with this implementation.

Thanks,
Steffen Schmid

Author
cecilia smallwood
Posted
7-Feb-2019 12:08 GMT
Toolset
ARM
New! RE: Webserver using Cookies

I'd suggest you checking this thread on github: https://github.com/expressjs/cookie-parser. Also there is a Token-based Authentication called JSON Web Tokens (JWT).

http://cs.trains.com/members/charlesjenkins/default.aspx

Author
Philipp Janowski
Posted
7-Feb-2019 15:32 GMT
Toolset
ARM
New! RE: Webserver using Cookies

This answer is not going into the right direction.
The posted link is about a Node module for parsing Cookies.

What we're looking for is a solution for the ARM Keil Net Component 7.x HTTP server to send a cookie to the browser.

The Net Component has a few functions to manipulate the HTTP header (like setting Content-Type, doing Redirects) but it looks like there is no way to make it add a Cookie to the header.

JWT also involves adding information to the HTTP header.

Author
Steffen Schmid
Posted
11-Feb-2019 10:15 GMT
Toolset
ARM
New! RE: Webserver using Cookies

Hi Cecilia,

Thanks for your suggestion, but this actually does not solve the problem.
We seem to be struggling with a limitation of the web server, which, to my current knowledge, appears to be due to its limited API to modify HTTP header information.
So we are looking for someone who has successfully implemented cookies on the Keil web server.
Any suggestions to overcome the limitation are highly appreciated.

Thanks,
Steffen

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.