Authentication
-
Hi I was wondering if you would be able to give me some general feedback on my latest issue I have created a user login screen, but now I want to be able to create some sort of authentication, so that I don't require the user to enter there login credentials everytime i need to do somthin in my database. What is the best way of doing this, would issueing a cookie after succesfully loggin in do the job, so it gives me a constant reference to who the user is, allowing me to pull data from tables that is relevant to them any help appreciated boy
-
Hi I was wondering if you would be able to give me some general feedback on my latest issue I have created a user login screen, but now I want to be able to create some sort of authentication, so that I don't require the user to enter there login credentials everytime i need to do somthin in my database. What is the best way of doing this, would issueing a cookie after succesfully loggin in do the job, so it gives me a constant reference to who the user is, allowing me to pull data from tables that is relevant to them any help appreciated boy
Have you tried just using Session variables? You could go the cookies route but make sure the password is not in plain text and the cookie is set to expire with in a short time later. Say like 20 minutes or one hour... Just a quick thought...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
Have you tried just using Session variables? You could go the cookies route but make sure the password is not in plain text and the cookie is set to expire with in a short time later. Say like 20 minutes or one hour... Just a quick thought...
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
-
No I have never used session variables, not really done anythin like this thats why I asked was gettin millions of different things off the web. All my passwords have been encrpted anyways , sot ahts not a problem
Session["SomeVariable"] = someVariableIuse; Use session variables to store information like that about the current user. Just note that you have to cast the objects back out of the Session object string MySessionVariable = (string)Session["SomeVariable"];
Darroll
-
No I have never used session variables, not really done anythin like this thats why I asked was gettin millions of different things off the web. All my passwords have been encrpted anyways , sot ahts not a problem
boyindie wrote:
All my passwords have been encrpted anyways , sot ahts not a problem
That is fine. You can store it in session variables. Just take a look at Darrol's example.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus