|
Problem: some function in "functions/functions_session_data.asp" Wrong
I used MSSQL version.
But i can't make new registration user.
it's show "Security code wrong".
i type correct but it said "wrong".
i try find problem.
I found this: in "functions_Login.asp"
------------------------------------------------------------------------------------
'If CAPTCHA is NOT required only enable it if login attempts are above 3 If blnCAPTCHArequired = True OR intLoginAttempts => 3 Then 'Set the blnCAPTCHArequired to true blnCAPTCHArequired = true 'If the login attempt is above 3 then check if the user has entered a CAPTCHA image If LCase(getSessionItem("SCS")) = LCase(Trim(Request.Form("securityCode"))) AND getSessionItem("SCS") <> "" Then blnSecurityCodeOK = True loginUser = 2 Else blnSecurityCodeOK = False loginUser = 3 End If 'Distroy session variable Call saveSessionItem("SCS", "") End If
------------------------------------------------------------------------------------
LCase(getSessionItem("SCS")) <----- This value retrun "" (blank value)
becuase this function can't get anything from application layer.
What is happen with code above?
becuase step to save session to Application layer,
it save in wrong format then code to get data from session can't read correct position.
Where is to fix?
fix in saveSessionItem function (in functions_session_data.asp)
if you use basic fix, it can help but it's bad for database.
your forum can continue run.
--------------------------------------------------------------------------------------
basic fix:
Try to use Database tracking/session functions by
set blnDatabaseHeldSessions (in functions_session_data.asp) = True
session Security code will save on DB to use for compare with user key.
By using the database to store tracking/session data (set to 'True') will slow performance, course more database hits, and may course database corruption issues if using MS Access
--------------------------------------------------------------------------------------
Sorry for my English(i am thai user), I try to explan..
if you have some way to fix it easy, please tell me know more.
Thank you
|