Jump to content

swap

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

swap's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. It's p[retty simple, there are  a few options, when you login; 1.) the script creates a $_SESSION value that will be checked every page the user requests.     if the $_SESSION value isn't found, the page will not be opened. (the user will be redirected.)     A session can either result in a cookie or some header code. 2.) The script inserts a value to the databse, and uses the url, some hidden value or a cookie to let the user pass the value back to the script.     If the value for that ip matches the value from the database, it passes the validation.     Some problems occur when more then one user logsin from the same ip.     Solutions are there, just an example. *)  lots of other options. just make sure login pages are going trough ssl and you're safe to go. GL
  2. Hery dudes, Trying to call a static array in my formclass, but it doesn't work. [code] <?php     class Nonse(){           public static $mArray=array('var_1', 'var_2', 'var_2');           public static CallArrayVal($c){                   return self::mArray[$c];           }   echo Nonse::CallArrayVal(1);   echo Nonse::mArray[1]; ?> [/code] None of the above examples work, and php tells me that it can't find the variables $mArray. Can someone please help me out here?     Many tnks.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.