well - instead of using "true" - simply use true (without the quotes). that way you get out of spelling issues which you may indeed have got into - by checking if its "True" instead of "true" - which would return false. hth Moshe
-----Original Message----- From: llll_sole_llll [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 11:01 PM To: [email protected] Subject: [ASP] MSAccess & ASP Sessions Hi all. Anyone help with a problem I am having with ASP & MS Access? I have a login page that uses a MS Access database to check the login details. The access_check.asp is a seperate ASP file. Connection to the database is DSN-Less. I can log in ok but after a few seconds, I get logged out and kicked back to the login.asp page. If the password and user name exists and is a valid pair then set the session like so: Session("IamIn") = "true" The session is then read on each page using: <% Response.Buffer = True If session("IamIn") <> "true" Then Response.Redirect("index.asp") End If %> I have checked that the session is on the other pages and that the SQL is showing correctly. Anyone help? Thanks, S --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129lu8rm0/M=297844.5692940.6932969.3356155/D=gr oups/S=1705115381:HM/EXP=1109970047/A=2533537/R=0/SIG=10v7of2am/*http://www. target.com/careers> click here <http://us.adserver.yahoo.com/l?M=297844.5692940.6932969.3356155/D=groups/S= :HM/A=2533537/rand=951921966> _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [email protected] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
