Re: [PHP-WIN] SESSIONS and include()

2006-02-09 Thread Fredrik Tillman
protected directory (so they are not just able to be viewed by browsing directly to the file) and it works fine. If you do it with a different file extension, make sure you configure your web server to make PHP process pages with that extension. Cheers. http://ca3.php.net/manual/en/function

[PHP-WIN] SESSIONS and include()

2006-02-08 Thread Fredrik Tillman
Hi PROBLEM: I want to let certain users use certain funcions on my page. To manage that I start a session and define $_SESSION[user_level] to a value from a mySQL table. So far so good. Users with $_SESSION[user_level]=="1" can access things on the .php page they are on. I made a simple if-st