Ask a Question related to ASP, Design and Development.

  1. #1

    Default IE6 problems

    I have a login script to a website where a user logs in through a
    standard webform with a username and password that needs to be
    validated. My problem is that IE6 doesn't seem to pick up on valid
    username/password combinations and instead of forwarding the user to the
    next page dumps them back at the login page.

    My verification script is below:

    <%
    Response.CacheControl = "no-cache"
    Response.AddHeader "Pragma", "no-cache"
    Response.Expires = -1

    user = trim(Request.form("username"))
    password = trim(Request.form("password"))

    if user = "" or password = "" then
    Response.Write "please enter username and password"
    else
    ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    Persist Security Info=True; Data Source=" &

    Server.MapPath("member.mdb")

    set my_conn= Server.CreateObject("ADODB.Connection")
    set rs = server.CreateObject("ADODB.RecordSet")
    my_conn.Open ConnString

    rs.open "Select * from member where Name ='" & user & "' and
    Password='" & password & "'", my_conn
    if rs.eof then
    Response.Write("Invalid Username/Password")'redirect invalid_page
    'invalid password and redirect to login page
    else
    session("login") = "yes"
    session("name") = rs("name")
    'session("...") = rs("...")
    ' add session ..if you want to keep profile of your user.

    Response.redirect valid_login

    end if

    rs.Close
    my_conn.close
    set my_conn = nothing
    end if
    %>

    This all works fine in other browsers such as Firebird and Opera, even
    earlier versions of IE work fine but I can't figure out whats wrong. I
    would be most greatful for any assistance.

    I'm rather new to ASP, so if my problem is glaringly obvious please
    don't beat down on me too hard ;)

    Regards
    Graham

    --
    "This is my country, the land that begat me. These windy spaces, are
    surely my own."
    - Alexander Gray

    Graham Campbell Guest

  2. Similar Questions and Discussions

    1. problems with 8.0 Rc4
      I've been trying to check that my current application working on postgres 7.4 will work with 8.0. I've not checked the application yet but I'm...
    2. problems with preLoadNetThing and fileName (was problems with preLoadNetThing and importFileInto)
      You don't want to leave the QT member in your cast when you publish your movie - it's not really there, it's linked. When you run the movie it will...
    3. I having problems with IIS
      I just tried to view a page that I had earlier on my own personal web site and was not able to view it. I then tried just plain old localhost and...
    4. Why am I Having Problems ?
      On 8/2/03 1:08 PM, in article 6TUWa.216121$o86.33889@news1.central.cox.net, "Spam@markris.com" <Spam@markris.com> wrote: A Relationship requires...
    5. XP & ME--- ICS problems
      I have had my 2 computers networked for almost 2 years with no problems until now. Recently my client Computer(ME) lost thr residential gateway...
  3. #2

    Default Re: IE6 problems

    where is "valid_login" defined?

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------


    "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    news:3F5B7C1B.9040301@cis.strath.ac.uk...
    > I have a login script to a website where a user logs in through a
    > standard webform with a username and password that needs to be
    > validated. My problem is that IE6 doesn't seem to pick up on valid
    > username/password combinations and instead of forwarding the user to the
    > next page dumps them back at the login page.
    >
    > My verification script is below:
    >
    > <%
    > Response.CacheControl = "no-cache"
    > Response.AddHeader "Pragma", "no-cache"
    > Response.Expires = -1
    >
    > user = trim(Request.form("username"))
    > password = trim(Request.form("password"))
    >
    > if user = "" or password = "" then
    > Response.Write "please enter username and password"
    > else
    > ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    > Persist Security Info=True; Data Source=" &
    >
    > Server.MapPath("member.mdb")
    >
    > set my_conn= Server.CreateObject("ADODB.Connection")
    > set rs = server.CreateObject("ADODB.RecordSet")
    > my_conn.Open ConnString
    >
    > rs.open "Select * from member where Name ='" & user & "' and
    > Password='" & password & "'", my_conn
    > if rs.eof then
    > Response.Write("Invalid Username/Password")'redirect invalid_page
    > 'invalid password and redirect to login page
    > else
    > session("login") = "yes"
    > session("name") = rs("name")
    > 'session("...") = rs("...")
    > ' add session ..if you want to keep profile of your user.
    >
    > Response.redirect valid_login
    >
    > end if
    >
    > rs.Close
    > my_conn.close
    > set my_conn = nothing
    > end if
    > %>
    >
    > This all works fine in other browsers such as Firebird and Opera, even
    > earlier versions of IE work fine but I can't figure out whats wrong. I
    > would be most greatful for any assistance.
    >
    > I'm rather new to ASP, so if my problem is glaringly obvious please
    > don't beat down on me too hard ;)
    >
    > Regards
    > Graham
    >
    > --
    > "This is my country, the land that begat me. These windy spaces, are
    > surely my own."
    > - Alexander Gray
    >

    Curt_C [MVP] Guest

  4. #3

    Default Re: IE6 problems

    Ouch,
    I had found this one too some time ago. And the strange is that on my IE6
    everything works fine,
    but at a visitor's IE6 (with the same build) he couldn't log in.

    Sessions are cookies. So, see in your cookies folder if they are made by the
    browser. If it does, then
    I don't know (sorry). If they aren't made, then have a look at the security
    settings of IE6.
    Another thing you can read about is P3P.

    Good luck!

    Karim





    "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
    news:%23ugl5oYdDHA.4020@tk2msftngp13.phx.gbl...
    > where is "valid_login" defined?
    >
    > --
    > ----------------------------------------------------------
    > Curt Christianson (Software_AT_Darkfalz.Com)
    > Owner/Lead Designer, DF-Software
    > [url]http://www.Darkfalz.com[/url]
    > ---------------------------------------------------------
    > ..Offering free scripts & code snippits for everyone...
    > ---------------------------------------------------------
    >
    >
    > "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    > news:3F5B7C1B.9040301@cis.strath.ac.uk...
    > > I have a login script to a website where a user logs in through a
    > > standard webform with a username and password that needs to be
    > > validated. My problem is that IE6 doesn't seem to pick up on valid
    > > username/password combinations and instead of forwarding the user to the
    > > next page dumps them back at the login page.
    > >
    > > My verification script is below:
    > >
    > > <%
    > > Response.CacheControl = "no-cache"
    > > Response.AddHeader "Pragma", "no-cache"
    > > Response.Expires = -1
    > >
    > > user = trim(Request.form("username"))
    > > password = trim(Request.form("password"))
    > >
    > > if user = "" or password = "" then
    > > Response.Write "please enter username and password"
    > > else
    > > ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    > > Persist Security Info=True; Data Source=" &
    > >
    > > Server.MapPath("member.mdb")
    > >
    > > set my_conn= Server.CreateObject("ADODB.Connection")
    > > set rs = server.CreateObject("ADODB.RecordSet")
    > > my_conn.Open ConnString
    > >
    > > rs.open "Select * from member where Name ='" & user & "' and
    > > Password='" & password & "'", my_conn
    > > if rs.eof then
    > > Response.Write("Invalid Username/Password")'redirect invalid_page
    > > 'invalid password and redirect to login page
    > > else
    > > session("login") = "yes"
    > > session("name") = rs("name")
    > > 'session("...") = rs("...")
    > > ' add session ..if you want to keep profile of your user.
    > >
    > > Response.redirect valid_login
    > >
    > > end if
    > >
    > > rs.Close
    > > my_conn.close
    > > set my_conn = nothing
    > > end if
    > > %>
    > >
    > > This all works fine in other browsers such as Firebird and Opera, even
    > > earlier versions of IE work fine but I can't figure out whats wrong. I
    > > would be most greatful for any assistance.
    > >
    > > I'm rather new to ASP, so if my problem is glaringly obvious please
    > > don't beat down on me too hard ;)
    > >
    > > Regards
    > > Graham
    > >
    > > --
    > > "This is my country, the land that begat me. These windy spaces, are
    > > surely my own."
    > > - Alexander Gray
    > >
    >
    >

    Karim Dahdah Guest

  5. #4

    Default Re: IE6 problems

    it's defined in an include file that i negelected to show in my original
    post :(

    i'm fairly certain that's not what's causing the problem here but any
    suggestions would be most welcome :D

    Graham

    Curt_C [MVP] wrote:
    > where is "valid_login" defined?
    >

    --
    "This is my country, the land that begat me. These windy spaces, are
    surely my own."
    - Alexander Gray

    Graham Campbell Guest

  6. #5

    Default Re: IE6 problems

    Are you using your Session to determine if someone is logged in or not?


    Also, try putting your Select statement into a variable, and displaying
    it.....

    Dim sSQL
    sSQL="Select * From Memeber Where Name='" & user & "'" AND Password='" &
    password & "'"

    Response.write sSQL
    Response.flush


    What would happen if a user put in

    ' or 'x' = 'x

    for the username and the password?

    You'd have a statement like.....
    rs.open "Select * from member where Name='' or 'x'='x' and Password='' or
    'x'='x'", my_conn



    "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    news:3F5B7C1B.9040301@cis.strath.ac.uk...
    > I have a login script to a website where a user logs in through a
    > standard webform with a username and password that needs to be
    > validated. My problem is that IE6 doesn't seem to pick up on valid
    > username/password combinations and instead of forwarding the user to the
    > next page dumps them back at the login page.
    >
    > My verification script is below:
    >
    > <%
    > Response.CacheControl = "no-cache"
    > Response.AddHeader "Pragma", "no-cache"
    > Response.Expires = -1
    >
    > user = trim(Request.form("username"))
    > password = trim(Request.form("password"))
    >
    > if user = "" or password = "" then
    > Response.Write "please enter username and password"
    > else
    > ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    > Persist Security Info=True; Data Source=" &
    >
    > Server.MapPath("member.mdb")
    >
    > set my_conn= Server.CreateObject("ADODB.Connection")
    > set rs = server.CreateObject("ADODB.RecordSet")
    > my_conn.Open ConnString
    >
    > rs.open "Select * from member where Name ='" & user & "' and
    > Password='" & password & "'", my_conn
    > if rs.eof then
    > Response.Write("Invalid Username/Password")'redirect invalid_page
    > 'invalid password and redirect to login page
    > else
    > session("login") = "yes"
    > session("name") = rs("name")
    > 'session("...") = rs("...")
    > ' add session ..if you want to keep profile of your user.
    >
    > Response.redirect valid_login
    >
    > end if
    >
    > rs.Close
    > my_conn.close
    > set my_conn = nothing
    > end if
    > %>
    >
    > This all works fine in other browsers such as Firebird and Opera, even
    > earlier versions of IE work fine but I can't figure out whats wrong. I
    > would be most greatful for any assistance.
    >
    > I'm rather new to ASP, so if my problem is glaringly obvious please
    > don't beat down on me too hard ;)
    >
    > Regards
    > Graham
    >
    > --
    > "This is my country, the land that begat me. These windy spaces, are
    > surely my own."
    > - Alexander Gray
    >

    TomB Guest

  7. #6

    Default Re: IE6 problems

    I assume you mean the 'x thing.
    There's a good website about that (SQL Injection attack) but I can't
    remember where it was right now.

    Anyway, did you get your script working?

    "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    news:3F5CDE28.2020802@cis.strath.ac.uk...
    > wow thanks. never even considered that!
    >
    > :D
    >
    > Graham
    >
    > TomB wrote:
    > > Are you using your Session to determine if someone is logged in or not?
    > >
    > >
    > > Also, try putting your Select statement into a variable, and displaying
    > > it.....
    > >
    > > Dim sSQL
    > > sSQL="Select * From Memeber Where Name='" & user & "'" AND Password='" &
    > > password & "'"
    > >
    > > Response.write sSQL
    > > Response.flush
    > >
    > >
    > > What would happen if a user put in
    > >
    > > ' or 'x' = 'x
    > >
    > > for the username and the password?
    > >
    > > You'd have a statement like.....
    > > rs.open "Select * from member where Name='' or 'x'='x' and Password=''
    or
    > > 'x'='x'", my_conn
    > >
    > >
    > >
    > > "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    > > news:3F5B7C1B.9040301@cis.strath.ac.uk...
    > >
    > >>I have a login script to a website where a user logs in through a
    > >>standard webform with a username and password that needs to be
    > >>validated. My problem is that IE6 doesn't seem to pick up on valid
    > >>username/password combinations and instead of forwarding the user to the
    > >>next page dumps them back at the login page.
    > >>
    > >>My verification script is below:
    > >>
    > >><%
    > >>Response.CacheControl = "no-cache"
    > >>Response.AddHeader "Pragma", "no-cache"
    > >>Response.Expires = -1
    > >>
    > >>user = trim(Request.form("username"))
    > >>password = trim(Request.form("password"))
    > >>
    > >>if user = "" or password = "" then
    > >> Response.Write "please enter username and password"
    > >>else
    > >> ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    > >>Persist Security Info=True; Data Source=" &
    > >>
    > >>Server.MapPath("member.mdb")
    > >>
    > >> set my_conn= Server.CreateObject("ADODB.Connection")
    > >> set rs = server.CreateObject("ADODB.RecordSet")
    > >> my_conn.Open ConnString
    > >>
    > >> rs.open "Select * from member where Name ='" & user & "' and
    > >>Password='" & password & "'", my_conn
    > >> if rs.eof then
    > >> Response.Write("Invalid Username/Password")'redirect invalid_page
    > >> 'invalid password and redirect to login page
    > >> else
    > >> session("login") = "yes"
    > >> session("name") = rs("name")
    > >> 'session("...") = rs("...")
    > >> ' add session ..if you want to keep profile of your user.
    > >>
    > >> Response.redirect valid_login
    > >>
    > >> end if
    > >>
    > >> rs.Close
    > >> my_conn.close
    > >> set my_conn = nothing
    > >>end if
    > >>%>
    > >>
    > >>This all works fine in other browsers such as Firebird and Opera, even
    > >>earlier versions of IE work fine but I can't figure out whats wrong. I
    > >>would be most greatful for any assistance.
    > >>
    > >>I'm rather new to ASP, so if my problem is glaringly obvious please
    > >>don't beat down on me too hard ;)
    > >>
    > >>Regards
    > >>Graham
    > >>
    > >>--
    > >>"This is my country, the land that begat me. These windy spaces, are
    > >>surely my own."
    > >>- Alexander Gray
    > >>
    > >
    > >
    > >
    >
    >
    > --
    > "This is my country, the land that begat me. These windy spaces, are
    > surely my own."
    > - Alexander Gray
    >

    TomB Guest

  8. #7

    Default Re: IE6 problems

    wow thanks. never even considered that!

    :D

    Graham

    TomB wrote:
    > Are you using your Session to determine if someone is logged in or not?
    >
    >
    > Also, try putting your Select statement into a variable, and displaying
    > it.....
    >
    > Dim sSQL
    > sSQL="Select * From Memeber Where Name='" & user & "'" AND Password='" &
    > password & "'"
    >
    > Response.write sSQL
    > Response.flush
    >
    >
    > What would happen if a user put in
    >
    > ' or 'x' = 'x
    >
    > for the username and the password?
    >
    > You'd have a statement like.....
    > rs.open "Select * from member where Name='' or 'x'='x' and Password='' or
    > 'x'='x'", my_conn
    >
    >
    >
    > "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    > news:3F5B7C1B.9040301@cis.strath.ac.uk...
    >
    >>I have a login script to a website where a user logs in through a
    >>standard webform with a username and password that needs to be
    >>validated. My problem is that IE6 doesn't seem to pick up on valid
    >>username/password combinations and instead of forwarding the user to the
    >>next page dumps them back at the login page.
    >>
    >>My verification script is below:
    >>
    >><%
    >>Response.CacheControl = "no-cache"
    >>Response.AddHeader "Pragma", "no-cache"
    >>Response.Expires = -1
    >>
    >>user = trim(Request.form("username"))
    >>password = trim(Request.form("password"))
    >>
    >>if user = "" or password = "" then
    >> Response.Write "please enter username and password"
    >>else
    >> ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    >>Persist Security Info=True; Data Source=" &
    >>
    >>Server.MapPath("member.mdb")
    >>
    >> set my_conn= Server.CreateObject("ADODB.Connection")
    >> set rs = server.CreateObject("ADODB.RecordSet")
    >> my_conn.Open ConnString
    >>
    >> rs.open "Select * from member where Name ='" & user & "' and
    >>Password='" & password & "'", my_conn
    >> if rs.eof then
    >> Response.Write("Invalid Username/Password")'redirect invalid_page
    >> 'invalid password and redirect to login page
    >> else
    >> session("login") = "yes"
    >> session("name") = rs("name")
    >> 'session("...") = rs("...")
    >> ' add session ..if you want to keep profile of your user.
    >>
    >> Response.redirect valid_login
    >>
    >> end if
    >>
    >> rs.Close
    >> my_conn.close
    >> set my_conn = nothing
    >>end if
    >>%>
    >>
    >>This all works fine in other browsers such as Firebird and Opera, even
    >>earlier versions of IE work fine but I can't figure out whats wrong. I
    >>would be most greatful for any assistance.
    >>
    >>I'm rather new to ASP, so if my problem is glaringly obvious please
    >>don't beat down on me too hard ;)
    >>
    >>Regards
    >>Graham
    >>
    >>--
    >>"This is my country, the land that begat me. These windy spaces, are
    >>surely my own."
    >>- Alexander Gray
    >>
    >
    >
    >

    --
    "This is my country, the land that begat me. These windy spaces, are
    surely my own."
    - Alexander Gray

    Graham Campbell Guest

  9. #8

    Default Re: IE6 problems

    Karim, you da man. Didn't even think to check the security settings.
    Should have known better!

    Thanks man!

    Graham

    Karim Dahdah wrote:
    > Ouch,
    > I had found this one too some time ago. And the strange is that on my IE6
    > everything works fine,
    > but at a visitor's IE6 (with the same build) he couldn't log in.
    >
    > Sessions are cookies. So, see in your cookies folder if they are made by the
    > browser. If it does, then
    > I don't know (sorry). If they aren't made, then have a look at the security
    > settings of IE6.
    > Another thing you can read about is P3P.
    >
    > Good luck!
    >
    > Karim
    >
    >
    >
    >
    >
    > "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
    > news:%23ugl5oYdDHA.4020@tk2msftngp13.phx.gbl...
    >
    >>where is "valid_login" defined?
    >>
    >>--
    >>----------------------------------------------------------
    >>Curt Christianson (Software_AT_Darkfalz.Com)
    >>Owner/Lead Designer, DF-Software
    >>[url]http://www.Darkfalz.com[/url]
    >>---------------------------------------------------------
    >>..Offering free scripts & code snippits for everyone...
    >>---------------------------------------------------------
    >>
    >>
    >>"Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    >>news:3F5B7C1B.9040301@cis.strath.ac.uk...
    >>
    >>>I have a login script to a website where a user logs in through a
    >>>standard webform with a username and password that needs to be
    >>>validated. My problem is that IE6 doesn't seem to pick up on valid
    >>>username/password combinations and instead of forwarding the user to the
    >>>next page dumps them back at the login page.
    >>>
    >>>My verification script is below:
    >>>
    >>><%
    >>>Response.CacheControl = "no-cache"
    >>>Response.AddHeader "Pragma", "no-cache"
    >>>Response.Expires = -1
    >>>
    >>>user = trim(Request.form("username"))
    >>>password = trim(Request.form("password"))
    >>>
    >>>if user = "" or password = "" then
    >>> Response.Write "please enter username and password"
    >>>else
    >>> ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    >>>Persist Security Info=True; Data Source=" &
    >>>
    >>>Server.MapPath("member.mdb")
    >>>
    >>> set my_conn= Server.CreateObject("ADODB.Connection")
    >>> set rs = server.CreateObject("ADODB.RecordSet")
    >>> my_conn.Open ConnString
    >>>
    >>> rs.open "Select * from member where Name ='" & user & "' and
    >>>Password='" & password & "'", my_conn
    >>> if rs.eof then
    >>> Response.Write("Invalid Username/Password")'redirect invalid_page
    >>> 'invalid password and redirect to login page
    >>> else
    >>> session("login") = "yes"
    >>> session("name") = rs("name")
    >>> 'session("...") = rs("...")
    >>> ' add session ..if you want to keep profile of your user.
    >>>
    >>> Response.redirect valid_login
    >>>
    >>> end if
    >>>
    >>> rs.Close
    >>> my_conn.close
    >>> set my_conn = nothing
    >>>end if
    >>>%>
    >>>
    >>>This all works fine in other browsers such as Firebird and Opera, even
    >>>earlier versions of IE work fine but I can't figure out whats wrong. I
    >>>would be most greatful for any assistance.
    >>>
    >>>I'm rather new to ASP, so if my problem is glaringly obvious please
    >>>don't beat down on me too hard ;)
    >>>
    >>>Regards
    >>>Graham
    >>>
    >>>--
    >>>"This is my country, the land that begat me. These windy spaces, are
    >>>surely my own."
    >>>- Alexander Gray
    >>>
    >>
    >>
    >
    >

    --
    "This is my country, the land that begat me. These windy spaces, are
    surely my own."
    - Alexander Gray

    Graham Campbell Guest

  10. #9

    Default Re: IE6 problems

    Here it is......
    [url]www.sqlsecurity.com/DesktopDefault.aspx?tabindex=2&tabid=3[/url]

    "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    news:3F5CDE28.2020802@cis.strath.ac.uk...
    > wow thanks. never even considered that!
    >
    > :D
    >
    > Graham
    >
    > TomB wrote:
    > > Are you using your Session to determine if someone is logged in or not?
    > >
    > >
    > > Also, try putting your Select statement into a variable, and displaying
    > > it.....
    > >
    > > Dim sSQL
    > > sSQL="Select * From Memeber Where Name='" & user & "'" AND Password='" &
    > > password & "'"
    > >
    > > Response.write sSQL
    > > Response.flush
    > >
    > >
    > > What would happen if a user put in
    > >
    > > ' or 'x' = 'x
    > >
    > > for the username and the password?
    > >
    > > You'd have a statement like.....
    > > rs.open "Select * from member where Name='' or 'x'='x' and Password=''
    or
    > > 'x'='x'", my_conn
    > >
    > >
    > >
    > > "Graham Campbell" <gjcampbe@cis.strath.ac.uk> wrote in message
    > > news:3F5B7C1B.9040301@cis.strath.ac.uk...
    > >
    > >>I have a login script to a website where a user logs in through a
    > >>standard webform with a username and password that needs to be
    > >>validated. My problem is that IE6 doesn't seem to pick up on valid
    > >>username/password combinations and instead of forwarding the user to the
    > >>next page dumps them back at the login page.
    > >>
    > >>My verification script is below:
    > >>
    > >><%
    > >>Response.CacheControl = "no-cache"
    > >>Response.AddHeader "Pragma", "no-cache"
    > >>Response.Expires = -1
    > >>
    > >>user = trim(Request.form("username"))
    > >>password = trim(Request.form("password"))
    > >>
    > >>if user = "" or password = "" then
    > >> Response.Write "please enter username and password"
    > >>else
    > >> ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Mode=ReadWrite;
    > >>Persist Security Info=True; Data Source=" &
    > >>
    > >>Server.MapPath("member.mdb")
    > >>
    > >> set my_conn= Server.CreateObject("ADODB.Connection")
    > >> set rs = server.CreateObject("ADODB.RecordSet")
    > >> my_conn.Open ConnString
    > >>
    > >> rs.open "Select * from member where Name ='" & user & "' and
    > >>Password='" & password & "'", my_conn
    > >> if rs.eof then
    > >> Response.Write("Invalid Username/Password")'redirect invalid_page
    > >> 'invalid password and redirect to login page
    > >> else
    > >> session("login") = "yes"
    > >> session("name") = rs("name")
    > >> 'session("...") = rs("...")
    > >> ' add session ..if you want to keep profile of your user.
    > >>
    > >> Response.redirect valid_login
    > >>
    > >> end if
    > >>
    > >> rs.Close
    > >> my_conn.close
    > >> set my_conn = nothing
    > >>end if
    > >>%>
    > >>
    > >>This all works fine in other browsers such as Firebird and Opera, even
    > >>earlier versions of IE work fine but I can't figure out whats wrong. I
    > >>would be most greatful for any assistance.
    > >>
    > >>I'm rather new to ASP, so if my problem is glaringly obvious please
    > >>don't beat down on me too hard ;)
    > >>
    > >>Regards
    > >>Graham
    > >>
    > >>--
    > >>"This is my country, the land that begat me. These windy spaces, are
    > >>surely my own."
    > >>- Alexander Gray
    > >>
    > >
    > >
    > >
    >
    >
    > --
    > "This is my country, the land that begat me. These windy spaces, are
    > surely my own."
    > - Alexander Gray
    >

    TomB Guest

  11. #10

    Default Re: IE6 problems



    TomB wrote:
    > I assume you mean the 'x thing.
    > There's a good website about that (SQL Injection attack) but I can't
    > remember where it was right now.
    >
    > Anyway, did you get your script working?
    Yeah, I got that part working at least lol. Thanks for the great help.

    I'm working on a few pieces here and there for this same organisation.
    Next on the list is working out how to parse thru a HTML template file
    so that I know where to put some user input text! :S

    I'm aware of the power that Perl's regex can provide here but not sure I
    want to go down the route. Any suggestions?

    Graham


    --
    "This is my country, the land that begat me. These windy spaces, are
    surely my own."
    - Alexander Gray

    Graham Campbell Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139