Home  >  Article  >  php教程  >  PHP4中session的应用(2)--欢迎页面(welcome_reserve.php3)

PHP4中session的应用(2)--欢迎页面(welcome_reserve.php3)

WBOY
WBOYOriginal
2016-06-21 09:13:021622browse

session|页面

//这个页面首先判断用户是否正确登录,如未登录,就转到登录页面。
session_start();
if((!$user_id)or(!$user_array[ticket_day])or(!$user_array[ticket_num])){
    Header("Location: login.php3");
}
?>




    欢迎使用南京站订票系统





 



  
    

      
        
          

            
娆㈣
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn