mmmmmm. this is really a cross post with:
http://p2p.wrox.com/topic.asp?TOPIC_ID=64313
;;;when I enter company-id and press submit..it is gettin redirected to login.asp
You need to assign a value to the session variable or its always gong to be = ""
Problems and solutions should remain in the forum. This way others benefit. I come here for help myself and help other when I can, and have time. Posting pages here wont get youi much help, posting specific problems which you have done your best to solve yourself will work around here.
Listen carefully:
1..ask for user details
2..post to the same page
3..based on user input ask the DB is there a record:
a..IF SO assign the ID to a session variable and redirect the user to where ever
b..IF NOT promt them 'sorry no details found, try again
do not place:
if session("id") = "" then
response.redirect("login.asp?login=failed")
end if
on the login page, or any other page which you send the user to before you have carried out steps 1, 2, 3 and or 3b
Hope that helps
Wind is your friend
Matt