Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Cannot login as Admin and CAPTCHA problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedCannot login as Admin and CAPTCHA problems

 Post Reply Post Reply Page  <123>
Author
VTBO View Drop Down
Newbie
Newbie


Joined: 01 November 2008
Status: Offline
Points: 24
Direct Link To This Post Posted: 18 March 2009 at 10:03am
Well it was set as a default application in the application pool. I added a new application pool and made sure it was set to 1 worker process. It didn't make a difference.
 
I restored the software back to the way it was prior to my modifications above.
 
I can log in, but when I go to login as admin it ignores the captcha info and tells me it was wrong. I see the same thing I am typing in the session table but for some reason it isn't making it through the compares.  If I blow the normal user  login and it puts up a captcha after 3 incorrect tries, I can no longer log in as the captcha compare does not work unless I add cstr and trim functions to the first term.  This is really strange. I cannot log in to any of the web wiz forums here free or paid, something really changed, I still think it has to do with the updates but I don't know which, not sure I want to roll back and the web wiz stuff is the only stuff that has been effected.
 
Phil
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
Direct Link To This Post Posted: 18 March 2009 at 11:13am
It still sounds to me like a session issue.

We have updated over 10 Win2k3 boxes here which all have the latest MS patches on and can see no issues with sessions. Although I do remember an issue with ASP Sessions that was coursed by SP1 or SP2 for Win2k3 but was later fixed, but this was going back a few years.

Also have you tried changing your forums in the includes/setup_options_inc.asp file to use the database to store session data in instead of the IIS worker process?
Back to Top
VTBO View Drop Down
Newbie
Newbie


Joined: 01 November 2008
Status: Offline
Points: 24
Direct Link To This Post Posted: 18 March 2009 at 12:45pm
Well i tried rolling back the 3 software updates that were applied on the 11th and it was still bad so it wasn't them. I do remember installing that microsoft malicious software removal tool update, so maybe that got overzealous and took something out it wasn't supposed to. I just put the updates back in.
 
I am already using the database for the sessions, not using the application method, although it doesn't work either. This is about the strangest thing I have seen.  Sorry to be such a pain.
 
 
Phil
Back to Top
VTBO View Drop Down
Newbie
Newbie


Joined: 01 November 2008
Status: Offline
Points: 24
Direct Link To This Post Posted: 18 March 2009 at 12:51pm
I wonder if it could be some sort of permissions thing that changed. What are your applications pools running under. Are they as a network service, or IWAM or something else?
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
Direct Link To This Post Posted: 18 March 2009 at 12:55pm
If you are using the database for sessions then it should make no difference if sessions are working on the server or not.

Have a look in the database at the tblSessions table and see if the CAPTCHA code matches that in the session table in the database.

Also make sure that the collation for the database is not case sensitive.
Back to Top
VTBO View Drop Down
Newbie
Newbie


Joined: 01 November 2008
Status: Offline
Points: 24
Direct Link To This Post Posted: 18 March 2009 at 1:16pm
Well, I see the captcha in the sessions table. See first postings. Problem is that it doesn't work unless I add that "trim" function to the first part of the compare as shown in the sql code posted.
 
WHen i am at the admin login screen once it compares and it sends me to the next page admin login then it craps out because the session table is now blank so it thinks i am a guest  and tells me i have no permissions.  better explanation in previous posts.
 
I have not changed anything in the database at all, but the 2 forums i have both stopped working at the same time, one is on a win2k machine the other is on a win2k3 machine. One is 9.55 the other is 9.53.
 
Really strange.
 
Phil
 
 
Back to Top
VTBO View Drop Down
Newbie
Newbie


Joined: 01 November 2008
Status: Offline
Points: 24
Direct Link To This Post Posted: 23 March 2009 at 12:13am
After several hours of debuging, it has come down to the session info in the session table is clearing out. If I try to login 3 times as admin each time the captcha is not recognized after the 3rd login attempt, I am no longer loged in at all. Something is not working when using the session table to track user sessions instead of the application.
 
I switched the config file back to use application variables for both the forum config and the users and now everything seems to work ok. So apparently there is some sort of bug in using the sessions table. For now I will keep it using the applications, but I would rather use the sessions table if possible.
 
Phil
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
Direct Link To This Post Posted: 23 March 2009 at 9:24am
Have not found an issue with this during testing when using the database to store sessions.

However, it is highly recommend not to use the database to store sessions unless you really have to, as using the database to store the session database is a BIG performance hit on the forum engine. It can more than double the amount of read and writes on the database for many popular pages.
Back to Top
 Post Reply Post Reply Page  <123>

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.