Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - blnAutoLogin always true ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

blnAutoLogin always true ?

 Post Reply Post Reply
Author
superlative View Drop Down
Groupie
Groupie

Not Comparative, I m Superlative :)

Joined: 26 November 2004
Location: Turkey
Status: Offline
Points: 125
Post Options Post Options   Thanks (0) Thanks(0)   Quote superlative Quote  Post ReplyReply Direct Link To This Post Topic: blnAutoLogin always true ?
    Posted: 13 May 2006 at 2:09pm
Hi all;
 
I discover a smalest problem in register.asp page. In this page (edit profile) "Automatically log me in when I return to the Forum" this value return always true. I select false then click update button. Function is working. Forum dont remember me. But these lines dont work :
 
Quote     <td width="50%" valign="top"><% = strTxtYes %><input type="radio" name="Login" id="Login" value="True" <% If blnAutoLogin = True Then Response.Write "checked" %> />&nbsp;&nbsp;<% = strTxtNo %><input type="radio" name="Login" id="Login" value="False" <% If blnAutoLogin = False Then Response.Write "checked" %> /></td>
 
in register.asp 1876. line
 
And other my question, examine db structure, I see login_attempt value in the tblAuthor table. What is this column?


Edited by superlative - 13 May 2006 at 2:10pm
Back to Top
mack View Drop Down
Groupie
Groupie


Joined: 06 November 2004
Location: United States
Status: Offline
Points: 90
Post Options Post Options   Thanks (0) Thanks(0)   Quote mack Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2006 at 7:21pm
I haven't looked into the code, and probably won't, be it appears to be the boolean is messed up.

Try doing:
Response.Write("AutoLogin: " + blnAutoLogin");

And see what it says. If it says True or False then everything should be fine, so try adding quotes around it like this:
<td width="50%" valign="top"><% = strTxtYes %><input
type="radio" name="Login" id="Login" value="True" <% If blnAutoLogin
= "True" Then Response.Write "checked" %>
/>&nbsp;&nbsp;<% = strTxtNo %><input type="radio"
name="Login" id="Login" value="False" <% If blnAutoLogin = "False"
Then Response.Write "checked" %> /></td>


If that don't work, try changing the "False" and "True" to have a lower case F and T.

What I'm saying is the boolean it's checking for might not actually be a boolean, which might be the issue.

But I don't know.

As for Login_Attempt, I assume that's to keep count of how many times the user "attempted" to login but failed.. I think when you login say 10 times in a row and it fails, a CAPTCHA will show up. That's what I assume that's for.

Hope this helps :)


Back to Top
superlative View Drop Down
Groupie
Groupie

Not Comparative, I m Superlative :)

Joined: 26 November 2004
Location: Turkey
Status: Offline
Points: 125
Post Options Post Options   Thanks (0) Thanks(0)   Quote superlative Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2006 at 9:50am
Thanks mack, i trty this at the weekend :)
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.