Minor Cakephp 2.5 session issue -- 2
$10-20 USD
Paid on delivery
I am not able to make session working into the code to use a login function like:
The session not stay in memory when we try to access it from the AppController (beforeFilter())
public function login() {
$this->layout = 'login';
if ($this->request->is('post')) {
$username = 'xxxx';
$password = 'xxxx';
if ($this->request->data('username') == $username && $this->request->data('password') == $password) {
$res = $this->Session->write('user_logged_in', 1);
var_dump($res);
var_dump($this->Session->read('user_logged_in'));
$this->redirect(['controller' => 'users']);
}
}
}
Project ID: #17477778
About the project
Awarded to:
Hi , I am working with cakephp over 6 year of experience in cake php. Your problem is look like i have solved before. looking forward hear from you. Thanks!
8 freelancers are bidding on average $22 for this job
Hey there, I am an expert developer, having hands on experience in developing websites and apps, I have more than 6 years of experience. I understand your requirements for ____. I am eager to start your project n More
Hello Greetings, I have read your job description carefully. I can work as per your requirement. I have more than 8 years of experience. I can start the work immediately . If you have any query for me please feel More
Questions 1) What you are doing in beforefilter function 2) Does it involve any front-end javascript such as reactJS or Angular JS? 3) Can share username and password inorder to check the post login pages? Techni More
I will solve your session issues asap. I have more than 5 years of experience as Web Developer. I was created more than 5 large web-application in Cakephp.