Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Can't register new user!, saveSessionItem() BUGGGG
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
jackdanial View Drop Down
Newbie
Newbie


Joined: 06 July 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jackdanial Quote  Post ReplyReply Direct Link To This Post Topic: Can't register new user!, saveSessionItem() BUGGGG
    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
 
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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!!


Edited by -boRg- - 06 July 2006 at 11:53am
Back to Top
jackdanial View Drop Down
Newbie
Newbie


Joined: 06 July 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jackdanial Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2006 at 12:10pm

sorry for screaming

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.