Skip to content
Snippets Groups Projects
Commit 2c0b84cd authored by echicken's avatar echicken
Browse files

Remove port portion of http_request.host when setting cookie path.

parent 235754e6
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ var webIni=(function() {
function setLoginCookie(u, sessionKey)
{
set_cookie('synchronet', u.number.toString() + ',' + sessionKey, time() + webIni.sessionTimeout, http_request.host, "/");
set_cookie('synchronet', u.number.toString() + ',' + sessionKey, time() + webIni.sessionTimeout, http_request.host.replace(/\:d*/g, ""), "/");
login(u.alias, u.security.password);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment