Advertisement
Guest User

Untitled

a guest
May 26th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. //Kontrola.php:
  2. ////////////////////////
  3. <?php
  4.  
  5. class Kontrola
  6. {
  7.     public static $prijavljeniKorisnik;
  8.    
  9.     var $vrijeme = null;
  10. }
  11. /////////////////////////
  12.  
  13. //LogInForm, at some point in code:
  14. if ($rezultat->num_rows == 1)
  15.         {
  16.             Kontrola::$prijavljeniKorisnik = $rezultat;
  17.            
  18.             Header ('Location: index.php');
  19.         }
  20.  
  21. //index.php immediately at start checks:
  22. if (Kontrola::$prijavljeniKorisnik == null)
  23.  
  24. It's ALWAYS null, I have determined that in LogIn it's not null before Header function, but after the Header function when Index gets loaded, it's always null. How can I save some static data between pages'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement