WICED http_server session management or cookies?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AaTa_3198991
Level 1
Level 1

Hello,

I need to implement a web server with login page on a WICED device with STM32F412 microcontroller. http_server that is bundled with WICED libraries does not seem to have anything to do with sessions or even cookies. Is the WICED_DYNAMIC_URL_CONTENT the only option with some code to generate the single page as a login page if there is no active login or the actual data page if the login is active?

Thanks

0 Likes
1 Solution
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

AaTa_3198991​ there are no cookies but there is a session based implementation in the http_server. Can you please look at SOCKET_PACKET_RECEIVED_EVENT at /43xxx_Wi-Fi/libraries/daemons/HTTP_server/http_server.c I am guessing this is what you are asking for. Do let me know if there is anything else. Yes, WICED_DYNAMIC_URL_CONTENT is an option which you can look at.

Thanks

View solution in original post

1 Reply
Murali_R
Moderator
Moderator
Moderator
250 sign-ins 250 replies posted 100 solutions authored

AaTa_3198991​ there are no cookies but there is a session based implementation in the http_server. Can you please look at SOCKET_PACKET_RECEIVED_EVENT at /43xxx_Wi-Fi/libraries/daemons/HTTP_server/http_server.c I am guessing this is what you are asking for. Do let me know if there is anything else. Yes, WICED_DYNAMIC_URL_CONTENT is an option which you can look at.

Thanks