Thread: ASP Client Log In Question
04-21-09, 03:50 #1Registered User
- Join Date
- Oct 2007
Unanswered: ASP Client Log In Question
I hope someone can help with this issue I'm having. I've found much useful information on this site before so I'm crossing my fingers that I can this time.
I want to creat a logon page, on my website, where when a client clicks "logon" they can enter their username and password, and be taken to their specific page. I want each protected page to be assigned to it's own user. For instance, let's say Client1 wants to log in to thier page - they enter their username and password and they are taken to Client1's Page. Then if Client2 wants to log on, they enter username and password and are taken to their unique Client2 page.
Ideally, each client will have their own username and password set to take them to their own page.
Can anyone provide some code or insight on what needs to be done here?
04-21-09, 16:28 #2(Making Your Life Easy)
Provided Answers: 10
- Join Date
- Feb 2004
- New Zealand
all you have to do is in the protect table ad the ClientID to that table then when the user logs in you just filter the protect table by the clientID.
what i do is after the user has login create a session cookie.
session("ClientID") = rs("ClientID")
then each time the user go to a page
I write the SQL
SQL = ""
SQL = SQL & "Select tablename.*"
SQL = SQL & " From tablename"
SQL = SQL & " Where ClientID=" & Session("ClientID") & " And the rest of the where bit"
Last edited by myle; 04-21-09 at 16:35.hope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON