Minor Cakephp 2.5 session issue -- 2

Completed Posted 5 years ago Paid on delivery
Completed 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']);

}

}

}

CakePHP MySQL PHP Software Architecture

Project ID: #17477778

About the project

8 proposals Remote project Active 5 years ago

Awarded to:

mohitvarshney

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!

$15 USD in 1 day
(0 Reviews)
0.0

8 freelancers are bidding on average $22 for this job

hoisticdeveloper

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

$30 USD in 1 day
(10 Reviews)
5.3
achiever003

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

$20 USD in 1 day
(9 Reviews)
3.4
webdroid

Hi, I review the code, will fix the issue in your cake php program. Please come to private chat to discuss further. My Skills and expertise. HTML5 , CSS3 , JAVASCRIPT , JQUERY , BOOTSTRAP , AJAX , PHP ,WordPre More

$30 USD in 1 day
(1 Review)
2.4
jhon312020

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

$15 USD in 1 day
(30 Reviews)
0.0
yog2200

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.

$25 USD in 1 day
(0 Reviews)
0.0