Welcome Guest, Not a member yet? Register   Sign In
Dealing with Sessions
#1

[eluser]mulama77[/eluser]
i came across this lines of code

$params['client_id'] = Session::get('client_id');

which when running produces

Fatal error: Class 'Session' not found in C:\xampp\htdocs\myapi\application\controllers\oauth.php on line 34

The initial tutorial does not have a class called Session. Is the above line of code same as

$params['client_id'] = $this->session->get('client_id');

which also produces

Fatal error: Call to a member function get() on a non-object in C:\xampp\htdocs\myapi\application\controllers\oauth.php on line 27

or what should i do to to make the first line of code work because when i run

$params['client_id'] = $this->get('client_id');

it works but the author insisted the use of sessions.


Messages In This Thread
Dealing with Sessions - by El Forum - 03-24-2013, 02:23 AM
Dealing with Sessions - by El Forum - 03-24-2013, 05:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB