Re: Secure Login PHP
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 15:16:18 -0500
wqmmnm wrote:
I am trying to develop a PHP site so that I may record my poker
winnings and display the results on my blog. I haven't used php in a
long time so I need to beginner type help. I know I am going to have
to write a login page that communicates with a MYSQL sever so that
shouldn't be an issue either. My issue is I am not sure if I should
write code to check login state to appear on every page after the
login. I also when the user hits the submit button on the webpage
should I post the webpage to itself or should I pass the user info to
the next page and do the user validation there. Please let me know
what I should do.
Yes, you need to check the login state on every page where that state is important (i.e. it probably isn't on your home page, so you wouldn't need it there).
As for validation - it all depends. I do it both ways; which one I use depends on the needs at the moment.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Secure Login PHP
- From: wqmmnm
- Secure Login PHP
- Prev by Date: Re: Image problem with $_FILES and $_POST
- Next by Date: Re: Image problem with $_FILES and $_POST
- Previous by thread: Secure Login PHP
- Index(es):