Re: [PHP] Log-in script help

2005-01-26 Thread Tom
Joe Harman wrote: Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state

Re: [PHP] Log-in script help

2005-01-26 Thread Joe Harman
Tom, That's a great tip! Joe On Wed, 26 Jan 2005 10:03:31 +, Tom [EMAIL PROTECTED] wrote: Joe Harman wrote: Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same

RE: [PHP] Log-in script help

2005-01-25 Thread Jay Blanchard
[snip] I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could get the script/learn how to

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 2:46 PM said: I need a pretty basic log in script. Something that people log in to, and the page and all linked/related pages cannot be accessed unless the person has logged in. So what do I need for this? Cookies,

Re: [PHP] Log-in script help

2005-01-25 Thread Jason Wong
On Wednesday 26 January 2005 06:58, Chris W. Parker wrote: The basic idea for restricting access goes like this: A value is set in a cookie on the clients machine if the user successfully authenticates. The website will not allow access to the page(s) unless this value is found. No what it

Re: [PHP] Log-in script help

2005-01-25 Thread Bret Hughes
On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote: Hey, I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or

Re: [PHP] Log-in script help

2005-01-25 Thread Richard Lynch
[EMAIL PROTECTED] wrote: Hey, I need a particular type log in script. I'm not sure how to do it or where I could find a tutorial that would help me, so I'll describe what I need and then maybe someone could tell me what kind of script I need (sessions or whatever) and where I could

Re: [PHP] Log-in script help

2005-01-25 Thread Joe Harman
Hey Andrew... IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... let me outline some steps for you... everyone else... feel free to state pros and cons to

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
Joe Harman mailto:[EMAIL PROTECTED] on Tuesday, January 25, 2005 4:23 PM said: IN MY OPINION... forget the cookies... only use php sessions... but like I said IMO you can never rely on the end user having them cookies enabled... same with things like javascript... Well, I don't think

Re: [PHP] Log-in script help

2005-01-25 Thread AceZero2790
These ideas are great and all, but I'm a real PHP newb so I have some questions. It was that I should look for the user in the database that stores the access info Could I just use an array for that? Or does it have to be MySQL or something. $_Session['user_id']= (who) - Does that just add

Re: [PHP] Log-in script help

2005-01-25 Thread Devraj Mukherjee
Some quick answers for you are, no it does not have to be a database that holds the authentication information. For one of my projects its just a global array that holds the information. You also don't have to use sessions to do anything. Cookies are fine as you have been told before. Every