Search found 19 matches
- Tue Jun 12, 2012 5:04 am
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
I think you're right Jacek. That fixed the prob. Thanks mate.
- Tue Jun 05, 2012 6:17 am
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
Regarding session_start(); - I have it in the init.inc.php file, and I'm including the init.inc.php file on any pages that need to be checked for logins etc. I notice that I also have to have session_start(); on the pages that include init.inc.php, otherwise the session vars don't carry. I thought t...
- Tue Jun 05, 2012 4:47 am
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
Nice - thank you mate.
- Mon Jun 04, 2012 4:56 pm
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
I'm looking for a good tut on preventing session hijacking and fixation.
- Mon Jun 04, 2012 2:46 pm
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
Yep - that makes perfect sense.
It's only some of the site (registered user specific) that I want users to be logged in to access, so I'll do the check on each protected page.
Do you have any tuts on adding extra session security, or can you recommend a good one?
Cheers mate.
It's only some of the site (registered user specific) that I want users to be logged in to access, so I'll do the check on each protected page.
Do you have any tuts on adding extra session security, or can you recommend a good one?
Cheers mate.
- Mon Jun 04, 2012 10:44 am
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
Re: User reg tut question
That makes sense Temor. So that check goes on each protected page.
Thanks mate.
Thanks mate.
- Fri Jun 01, 2012 5:16 pm
- Forum: Tutorials
- Topic: User reg tut question
- Replies: 13
- Views: 2399
User reg tut question
Gidday I'm working with your user system code, and I'm wondering what's the best practice way to check if the user is logged in on any extra pages you add? Say you have a 'photos' page that's belongs to the user and the user must be logged in to see, how do you know that the user is logged in if the...
- Thu Dec 08, 2011 2:10 am
- Forum: Tutorials
- Topic: user reg email activation tutorial
- Replies: 4
- Views: 890
Re: user reg email activation tutorial
Never mind!!!! I'd added queries to select a code from a pool of allowed codes when the user is activated, create a folder named after this code, do some other stuff, and then insert the code into the user's table once everything has been successfully completed. The problem was that I'd set the user...
- Thu Dec 08, 2011 1:59 am
- Forum: Tutorials
- Topic: user reg email activation tutorial
- Replies: 4
- Views: 890
Re: user reg email activation tutorial
I have the user_id column in the users' table set to auto increment. But it shouldn't be auto increment in the activations table, because we're inserting the user_id along with the aid, right? It's very bizarre - it definitely won't let me add a new user to the users' table until any pending activat...
- Wed Dec 07, 2011 3:19 pm
- Forum: Tutorials
- Topic: user reg email activation tutorial
- Replies: 4
- Views: 890
user reg email activation tutorial
Hi guys I'm stumped figuring out this problem. If I enter registration details for a user, hit submit, and get the activation email, the system won't let me enter another registration until that first one is activated. If I try to register someone else, no user data gets added to the table, although...
- Sun Dec 04, 2011 1:14 am
- Forum: Tutorials
- Topic: registration/email activation tut
- Replies: 2
- Views: 572
Re: registration/email activation tut
Ahh - thanks Jacek. I've set it up to test for the number of rows now.
Thanks again for the tuts - I knew nothing about accessing and interacting with mysql before, but now am able to make something useful.
Much appreciated
Shaun
Thanks again for the tuts - I knew nothing about accessing and interacting with mysql before, but now am able to make something useful.
Much appreciated
Shaun
- Fri Dec 02, 2011 2:50 pm
- Forum: Tutorials
- Topic: registration/email activation tut
- Replies: 2
- Views: 572
registration/email activation tut
Hi guys Regarding the registration/email activation tut... Say the user activates, and then they hit the activation link in their email again. Why does mysql NOT throw a warning after the mysql_query("DELETE FROM `user_activations` WHERE `activation_code` = '{$aid}'"); query? ie - the acti...
- Wed Nov 30, 2011 1:31 am
- Forum: Tutorials
- Topic: returning a $var in email activation tut
- Replies: 1
- Views: 511
returning a $var in email activation tut
Hi I've been customising the email registration php, and have come a ways with it. I've added a few more processes to the activation, including setting up a user directory. And it seems to be working. Now I'd like to return to activate.php a true value for when the dir set up (which is the last proc...
- Wed Nov 30, 2011 1:20 am
- Forum: Tutorials
- Topic: Check if email exists in registration
- Replies: 2
- Views: 943
Re: Check if email exists in registration
That fixed it up - thanks Sal!!!
- Tue Nov 29, 2011 8:43 am
- Forum: Tutorials
- Topic: Check if email exists in registration
- Replies: 2
- Views: 943
Check if email exists in registration
Hi I have the login/registration tut up and running now, complete with your email activation. THANKS!!! As well as checking if the username already exists, I'd like to check if the email exists in the database too, but can't find where I'm going wrong. In user.inc.php, I added the following function...
- Mon Nov 28, 2011 2:10 pm
- Forum: Tutorials
- Topic: Space in user registration username
- Replies: 4
- Views: 639
Re: Space in user registration username
Cheers Temor - I should have looked harder before posting - thanks for your time mate.
- Mon Nov 28, 2011 12:41 pm
- Forum: Tutorials
- Topic: Space in user registration username
- Replies: 4
- Views: 639
Space in user registration username
Hi I've almost got the Register and Login tut working. When registering, if I enter a username but no pass, when the page comes back, the username reappears in the form field, but it has a space entered before it. Here's the code: <input type="text" name="username" id="usern...
- Mon Nov 28, 2011 12:15 pm
- Forum: Tutorials
- Topic: PHP Login: expects parameter 1 to be resource, boolean given
- Replies: 2
- Views: 4945
Re: PHP Login: expects parameter 1 to be resource, boolean g
Never mind. SELECT_COUNT should be SELECT COUNT without the underscore.
7 hours for a f^%@!$#^%@ underscore!!!!!!!!!!!!!!!!!!!!!!!!!
Onwards and upwards...
7 hours for a f^%@!$#^%@ underscore!!!!!!!!!!!!!!!!!!!!!!!!!
Onwards and upwards...
- Mon Nov 28, 2011 11:59 am
- Forum: Tutorials
- Topic: PHP Login: expects parameter 1 to be resource, boolean given
- Replies: 2
- Views: 4945
PHP Login: expects parameter 1 to be resource, boolean given
Hi I too am having the same problem. Records are being entered into the database, but I get the error: Warning: mysql_result() expects parameter 1 to be resource, boolean given in /home/########/public_html/core/inc/user.inc.php on line 7 Warning: Cannot modify header information - headers already s...