Hi there i am having some real trouble with this function, at the moment it dosent seem to be working. Here is my code, below. I have a feeling it may have something to do with the settings php.ini file but am not to sure, i have a pretty standard macports php/apache install. Any help would be greatly appreciated.
//init.php
fSession::setPath(BASE_FOLDER.'storage/sessions');
fSession::setLength('30 minutes', '1 week');
//Users.php
public function log_in(){
if(fRequest::isPost()){
try{
$user = User(array('email'=>fRequest::get('email')));
if(!fCryptography::checkPasswordHash(fRequest::get('password'), $user->getPassword())){
throw new fValidationException('The login or password entered is invalid');
}
$user->setActiveAt(fTimestamp('now'))->store()->login();
if(fRequest::get('remember_me', 'boolean')){
fSession::enablePersistence();
}
$user->redirect();
}catch (fValidationException $e) {
fMessaging::create('error', fURL::get(), 'The login or password entered is invalid');
}catch(fException $e){
var_dump($e->getMessage());
}
}
include BASE_FOLDER.'views/users/log_in.php';
}
Thanks Ben.