Search results

  1. C

    How do i make a session variables in php TIMEOUT?

    I have a code but i dont understand it: ------- <?php $timeparts = explode(" ",microtime()); $starttime = $timeparts[1].substr($timeparts[0],1); if(!isset($_SESSION['name'])){ echo"Your session timed out. Please login again."; exit; } ?> -------
  2. C

    Will this PHP code work to get a sql database value and store it as a variable?

    If i simplify a code that collects a database value and stores it as a variable, will this still work? (I have already connected to the database) $Record = mysql_fetch_row(mysql_query("SELECT ScreenName FROM Register WHERE Username = $Username")); $ScreenName = $Record[0];
  3. C

    Do session variables in php timeout?

    If i have session variables to tell if a user is online but they have left the computer for X minutes, does the session timeout? If not what is a code to make them timeout if no activity(activity=going to other pages etc)?
  4. C

    How do i make a mail (Send, receive etc) script using PHP and a MySQL database?

    Anyone know a basic script to do this? also it doesn't need to be live it can be a link you click to check for mail. Note: mail does not mean the mail() function.
  5. C

    Is this code correct? SEE DETAILS its about the isset() function in PHP?

    Im making a PHP code to check if a user is logged in. how does the isset() function work? Will this work? if (isset($_SESSION['LoggedOn']) { IF THERE IS A SESSION VARIABLE DO THIS } else { IF NO SESSION VARIABLE DO THIS }
  6. C

    Using PHP Session Variables?

    What is a basic php code to check if the session variable Y is true and if the value = this X? And if the value is a password is it secure? how do i remove all session variables from my site? Thanks in Advance. Can you define multiply session variables? Is having a session variable named...
  7. C

    See More Detail...For Question! PHP Login Script/Form, Security, Hashing...

    ...(sha1). NEED HELP)? Is it more secure to hash (sha1) the username and password in the login form (2 hidden fields with value of the username and password but in sha1 encryption/hashing) before sending the form to the login script to be validated? Understand? Massive Thanks in Advance.
Back
Top