Print Page | Close Window

Can't register new user!, saveSessionItem() BUGGGG

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=20568
Printed Date: 28 March 2026 at 4:29pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Can't register new user!, saveSessionItem() BUGGGG
Posted By: jackdanial
Subject: Can't register new user!, saveSessionItem() BUGGGG
Date Posted: 06 July 2006 at 11:04am
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
 
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 06 July 2006 at 11:53am
This is NOT a bug in the software!!!

The code has been fully tested in mySQL and the fact that you have this issue suggests a problem with your server storing data in the servers memory (application level).

If this issue with the server can not be sorted out, then yes, you are correct, you are suggested to use the database to store the application data, and the web wiz forums has been written to allow this.

But this is in no way and bug and if your server was able to store data at application level, then there wouldn't be an issue.

For performance reasons web wiz forums comes by default storing data at application level, but for those few servers that have issues with this, then web wiz forums can be setup for you to change the variable in functions/functions_session_data.asp to use the database to store this data instead.

There are also lots of posts on this, and how to setup web wiz forums to use the database for session data, so please do a search before screaming BUGGGG at everyone!!


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: jackdanial
Date Posted: 06 July 2006 at 12:10pm

sorry for screaming




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net