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;
}
?>
-------
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];
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)?
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.
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 }
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...
...(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.
I think they were established for navigation for explorers. The equator is 0 degrees and it goes up 10 degrees each line that goes away from the equator north or south. Some additional information: The tropic of cancer is 23.5 degrees N and the tropic of capricorn is 23.5 degrees S.
I think they were established for navigation for explorers. The equator is 0 degrees and it goes up 10 degrees each line that goes away from the equator north or south. Some additional information: The tropic of cancer is 23.5 degrees N and the tropic of capricorn is 23.5 degrees S.