FSN#22727 Inloggen nieuwe stijl
svn path=/Website/trunk/; revision=12029
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
LCL_Disable = 1;
|
||||
ANONYMOUS_Allowed = 1;
|
||||
%>
|
||||
<!-- #include file="../Shared/common.inc"-->
|
||||
<%
|
||||
@@ -34,7 +35,7 @@
|
||||
var oRs = Oracle.Execute(sql);
|
||||
if (oRs.Eof)
|
||||
{
|
||||
Response.Write("URL NOT FOUND");
|
||||
Response.Write("BOOKMARK URL NOT FOUND");
|
||||
Response.End;
|
||||
}
|
||||
var url = oRs("fac_bookmark_path").Value;
|
||||
|
||||
@@ -70,7 +70,7 @@ function setUserFromSession (p_session)
|
||||
+ " WHERE prs_perslid_key = " + user_key // index-performance
|
||||
+ " AND fac_session_sessionid = " + safe.quoted_sql(p_session);
|
||||
Oracle.Execute(sql);
|
||||
makeSessionCookie(sessionData); // altijd nieuwe cookie
|
||||
// makeSessionCookie(sessionData); aanroeper bepaalt maar of er een nieuwe sessie komt
|
||||
}
|
||||
oRs.Close();
|
||||
}
|
||||
@@ -97,6 +97,7 @@ function makeSessionCookie (sessionData)
|
||||
Response.Cookies("fcltid").Path = rooturl + "/";
|
||||
VBexpireCookie("fcltid", "d", S("login_remember_days"));
|
||||
|
||||
// fcltcust is niet per se nodig voor Facilitor maar wel handig bij interne ontwikkeling
|
||||
Response.Cookies("fcltcust") = customerId;
|
||||
Response.Cookies("fcltcust").Path = rooturl + "/";
|
||||
VBexpireCookie("fcltcust", "d", S("login_remember_days"));
|
||||
|
||||
@@ -22,6 +22,8 @@ if (typeof Session("sso_sgf") == "string") // Vanuit SGF12-portal/ sso_sgf.asp
|
||||
{
|
||||
Session.Contents.Remove("ASPFIXATION"); // Niet moeilijk doen
|
||||
tryLogin(String(Session("sso_sgf")),null);
|
||||
if (user_key < 0)
|
||||
doLogin(parseInt(String(Session("sso_sgf")), 10)); // je mag ook key meegeven
|
||||
Session.Contents.Remove("sso_sgf");
|
||||
}
|
||||
|
||||
@@ -37,6 +39,8 @@ if (user_key < 0) // Probeer de user_key uit een cookie te halen
|
||||
if (FcltId != null && FcltId != "")
|
||||
{
|
||||
setUserFromSession (FcltId);
|
||||
if (user_key > 0)
|
||||
makeSessionCookie("Remember Login"); // Atijd nieuwe
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +59,7 @@ if (user_key < 0)
|
||||
{
|
||||
setUserFromSession(xx[1]);
|
||||
if (user_key > 0)
|
||||
makeSessionCookie("");
|
||||
makeSessionCookie(""); // Altijd 'definief' cookie plaatsen
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user