Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: Log in error

  1. #1
    Regular Coder
    Join Date
    Feb 2014
    Posts
    265
    Thanks
    47
    Thanked 0 Times in 0 Posts

    Log in error

    Hello

    Is there a reason, please, why I get this error message:

    Login Page

    The message is correct only when a user fails to log-in correctly. My code is:

    Code:
     <% If Session( "loginFailure" ) = True Then %>
    
    <div class="center">
    <p>Invalid password<br>
    Click <a href="password1.asp">here</a> to request your password</p>
    </div>
                                     
                 <% End If %>
    Thanks for any help.

    Blue

  • #2
    Regular Coder Linux_Sage's Avatar
    Join Date
    Mar 2014
    Location
    Sterling,VA
    Posts
    106
    Thanks
    0
    Thanked 10 Times in 10 Posts
    So... what's the problem? I'd assume that's how it's supposed to work. Is it doing this even though the credentials are correct?

  • #3
    Regular Coder
    Join Date
    Feb 2014
    Posts
    265
    Thanks
    47
    Thanked 0 Times in 0 Posts
    Could you please do me a favour (I haven't got anyone else to ask!) and go here: Login Page

    Does the error message appear on the screen when you visit that site without doing anything?

    If there is no error message, would you mind clicking on 'Login' and enter anything. You should get an error message centred in the page.

    I'm grateful.

  • #4
    Regular Coder Linux_Sage's Avatar
    Join Date
    Mar 2014
    Location
    Sterling,VA
    Posts
    106
    Thanks
    0
    Thanked 10 Times in 10 Posts
    All I saw was the login button on the page. I entered random info and got that error message. Is it because you wanted the error message to be centered not near the top?

  • #5
    Regular Coder
    Join Date
    Feb 2014
    Posts
    265
    Thanks
    47
    Thanked 0 Times in 0 Posts
    Thank you for doing that. No, what happened earlier was that when I went to that URL the error message appeared on my screen even before I had even clicked on the 'Log-in' button. I couldn't understand it because I thought I had placed the error message between the 'if login failure, then produce the error message'.

    Maybe it was my browser. Anyway, you have reassured me now! Thank you.

    I am doing this piecemeal. I have sorted out the 'forgotten password' part of the log-in form - not sure how to do the 'Remember me' part. There is not a lot on the Internet about it apart from ASP.NET.

    Would you have any links to tutorials or anything like that?

    Many thanks again for visiting the site

  • #6
    Regular Coder Linux_Sage's Avatar
    Join Date
    Mar 2014
    Location
    Sterling,VA
    Posts
    106
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Well it is checking the Sessions variable. And that information is typically stored in a cookie on your client side. So it very well could have been cached from a previous attempt of yours.

    As for as tutorials there is plenty of resources. Such as here:
    Tutorials : The Official Microsoft ASP.NET Site

  • Users who have thanked Linux_Sage for this post:

    Blue1 (04-06-2014)

  • #7
    Regular Coder
    Join Date
    Feb 2014
    Posts
    265
    Thanks
    47
    Thanked 0 Times in 0 Posts
    Sorry, I meant Classic ASP tutorials

  • #8
    Regular Coder Linux_Sage's Avatar
    Join Date
    Mar 2014
    Location
    Sterling,VA
    Posts
    106
    Thanks
    0
    Thanked 10 Times in 10 Posts
    Classic ASP is a bit dated and most support for it has been dropped as far as I know. Microsoft has pretty much left it to die in favor of ASP.NET but for whatever reason you want to learn it here's one resource for it:
    ASP Tutorial

  • #9
    Regular Coder
    Join Date
    Feb 2014
    Posts
    265
    Thanks
    47
    Thanked 0 Times in 0 Posts
    yes, I know. I suppose when you start off learning something and then the parent company opts for something else.................Same with VB6 and VB.Net

    I'll have to graduate to ASP.NET - just making the plunge.

    You take care and have a great w/e.

    Thank you for helping me.

    Which state are you in? UK here.
    Blue


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •