lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9576] Adding authorization cookie management


From: Giuseppe Modugno
Subject: [lwip-devel] [patch #9576] Adding authorization cookie management
Date: Thu, 1 Mar 2018 05:39:10 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Follow-up Comment #3, patch #9576 (project lwip):

> I'm using cookie to add the session ID in every subsequent HTTP requests, so
the server can check if it is valid or not.

Theorically, the authentication cookie should be added through "Set-Cookie"
header in HTTP response from the server. In order to keep httpd simple, I use
another solution. The session ID is returned in the body of a normal HTTP
response (of course, a "generated virtual" file). It's the client that
manually adds the cookie with the Javascript instruction:

document.cookie = "Auth=" + json.sid;


And the client could automatically goes to the home page with the correct
cookie with the follow instruction:

window.location.replace("index.html"); 



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9576>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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