And if you want to forcefully expire a cookie (like when you log out) you set the expiry time to the past, to force the browser to clear it
Thanks! Cleared a lot up. This time, I set up cookies correctly so now I don't have to sign in every time. :-)
I need to test the sign up and activation.
This guide tells me what to do to set up the php.ini file:
But I am super confused. What does it mean when it says to use my ISP?
I'm using a windows installation, I think. WAMP is the program.
What is easier?
Instead of using this to include characters, how do I make it so I can exclude the few characters? The goal is for the person to change the 'about me' but I don't want them to just stick to letters, spaces, commas and periods, so I think it would be silly to go through the keyboard and add all the other symbols..
Code:if(preg_replace( '/[^A-Z0-9,. !@#$%^&*()-_+=]/i', '', $about ) == $about)
My virtual pet site!
I can't think of any characters that should be excluded except the apostrophes and quotes for mysql injection reasons so I just put in extra security using htmlspecialchars, mysql_real_escape_string and addslashes.
and of course adding stripslashes when reading back the table info.
I decided not to do either because there's no reason to limit a user's about me to certain characters. I use the three mysql injection precautions in my last post. :-)