| Author |
Message |
benjaminsegal Novice Poster
Joined: 25 Jan 2009 Posts: 2
|
Posted: Sun Jan 25, 2009 2:31 pm Post subject: I am desparate for help with php page login |
|
|
I could really use some help with this if there anyone out there willing.
I am trying to create a site that has certain pages requiring users to login.
Can someone help me create the php script that checks if a user has logged in then direct them to a specified page or if not logged in, redirects to the login page.
Thanks!
Benjamin |
|
| Back to top |
|
| |
LP-SolidRaven Evil Belgian Waffle

Joined: 06 Jun 2004 Posts: 7982 Location: Belgium
|
|
| Back to top |
|
| |
benjaminsegal Novice Poster
Joined: 25 Jan 2009 Posts: 2
|
Posted: Sun Jan 25, 2009 6:32 pm Post subject: |
|
|
This is fantastic code. It is what I am using. What I need help with is the "access denied" page code.
it's a very short if then script
Many thanks! |
|
| Back to top |
|
| |
Xtreme $niper Lifeless Person
Joined: 29 Mar 2005 Posts: 1763 Location: Canada
|
Posted: Sun Feb 01, 2009 10:58 am Post subject: |
|
|
What's actually funny here is that a year or two ago I decided to do this exact same thing, but I did it from scratch because I didn't bother to look for frameworks or pre-made code (I usually didn't trust random code that people would offer to use).
I think I did a good job of it but then again a hacker might come by and destroy what I created in a matter of seconds, so who knows. I'd go with something pre-built or a framework to be safe. _________________ Come visit Shattered Abstracts! (Photoblog!) |
|
| Back to top |
|
| |
|
|
|