View Full Version : Problems Using IE!!!
Baleric
04-01-2005, 03:21 AM
i have a simple login script that does not work in Internet explorer but works perfect in Mozilla... wtf is rong, i got rid of my old login script aswell, due to this problem and made a new one and it still happens, its F***** bull ****
Someone please tell me wat the hell is going on :mad: :mad: :mad:
glenngv
04-01-2005, 03:55 AM
We can't tell what's going on if we can't see the code? :rolleyes:
Baleric
04-01-2005, 04:26 AM
This Is My Validation Page
<%@LANGUAGE="VBSCRIPT" %>
<!--#include file="Connections/Connection.asp" -->
<%
Dim cnnLogin
Dim rstLogin
Dim strUsername, strPassword
Dim strSQL
%>
<%
strSQL = "SELECT * FROM _users " _
& "WHERE txtusername='" & Replace(Request.Form("txtlogin"), "'", "''") & "' " _
& "AND txtpassword='" & Replace(Request.Form("txtpassword"), "'", "''") & "';"
Set cnnLogin = Server.CreateObject("ADODB.Connection")
cnnLogin.Open("DRIVER={Microsoft Access Driver (*.mdb)};" _
& "DBQ=" & Server.MapPath("samurai_dave.mdb"))
Set rstLogin = cnnLogin.Execute(strSQL)
If Not rstLogin.EOF Then %>
<% session("session1") = true
session("session2") = Request.Form("txtlogin")
response.Redirect("welcome.asp") %>
<%Else%>
<%response.Redirect("denied.asp")%>
<%End If %>
<%
rstLogin.Close
Set rstLogin = Nothing
cnnLogin.Close
Set cnnLogin = Nothing
%>
Placed at the top of my protected pages is :
<% If session("session1") = false Then %>
<% response.Redirect("denied.asp") %>
<% End If %>
glenngv
04-01-2005, 05:18 AM
Since it is a browser issue, definitely there should be no problem with the server-side code as it's running in the server and not in the browser. The problem must be in the HTML. Can you tell us what's IE's not doing that it's supposed to do?
Baleric
04-01-2005, 05:36 AM
Internet explorer isnt creating the session it needs to make, that is all,
the page is redirecting like it should, the session is not being created :P
-baleric
glenngv
04-01-2005, 06:02 AM
Are you using frames and IE6?
http://support.microsoft.com/kb/323752/EN-US/
Baleric
04-01-2005, 06:16 AM
im using IE6 but this happens to me no matter wat computer i use... my web sites cant be logged into using IE, its so weird, i dont know what the hell is wrong, the thing is, when im using IIS http://localhost the site works like it should then after it is uploaded nothing happens...
no sessions are created, i dont know what the hell is rong but wat ever it is its so fkn annoying, i got the login script from http://www.asp101.com/samples/login.asp ...
but i can use there login script on there site using IE6, but when i upload my own site and make a slight ulteration to the code... adding a response.redirect and a different session, it doesnt work, this is the most frustrating error ever...
i cant exactly say on my page, "please use mozilla not ie" :(
glenngv
04-01-2005, 07:55 AM
Have you read the link I posted and does it apply to your situation?
Other factor that may cause this is the browser is set not to accept cookies.
Baleric
04-01-2005, 09:43 AM
hhaahaahahaa i cant beleive this crap.... it was happening cause internet privacy was set to medium. lol i set it to low, and waaalaaaa it works.. i needed to have cookies enabled..
thanx so much for ur help glenn, sorry to be a pain in the *** :rolleyes:
-baleric
Baleric
04-02-2005, 01:15 AM
... 1 last question if u could help me, do u know y my site has to have the privacy bar set to low in order to login, where every other site is able to have it on medium..
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.