Hy! I have created a login for a php application. The user is forced to enter a username and password. This username and password is used to connect to a database. If this is possible the login was successful. Now I want to use this variables ($username, $password) also in other files that belong to this application. So how am I able to get variables that are defined in other pages of the script? It seems a simple task but I could not really find out searching my manuals! thanks for help
first file session_start() $_SESSION['username']=$username; $_SESSION['password']=$password; the following sentence will use in another file. echo $_SESSION['usernname']; i am not sure try it