Yep. It's me again. 96 hours into the battle, and SESSIONS are still winning.
I've written my login script and is now getting the following error. Please advise. Warning: open(/tmp/sess_a690c089dead297c95034d9fe243f860, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 ==== This is from a secure server connection to the following server (environment): PHP 4.2.3,Linux, MySQL 3.23x, Apache 1.3x The above error came from the following code: === page 1: class_page.php === ini_set("session.cookie_secure","On"); ini_set("session.cache_limiter","private"); ini_set("session.cache_expire",5); session_cache_limiter('private'); session_cache_expire (5); session_start(); class page{ . . . function authenticate(){ session_start(); if(is_array($_SESSION['AUTH'])){ echo 'user is logged in'; return True; }else{ //mysql code to verify username/password here... if(user/pass match) { $_SESSION['AUTH'] = array( userid=>1, username=>demo, access=>True ); }else{ $_SESSION=array(); session_destroy(); return False; } } } //end of class_page.php ==== PAGE_2.php === include(class_page.php); $page=new page; if($page->Authenticate()) { //display the above error ...proceed with the rest of the page... }else{ ...display error code... } //end page two =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php