Post by morpheis91 » Thu Mar 29, 2012 3:09 am

Hey there,
I am integrating OpenCart with my current framwork for an existing site. I want to take advantage of the logging in that OpenCart Provides.

What session variables can I check to see if a user is logged in?
Keep in mind that I want to do this from my framework :)

Newbie

Posts

Joined
Thu Mar 01, 2012 12:21 am

User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by morpheis91 » Tue Apr 03, 2012 1:21 am

amdev wrote:$this->session->data['customer_id'] = $customer_query->row['customer_id'];
So if I were to use the normal php session access. Would i do something like this? :

Code: Select all

$session_data = $_SESSION['data'];
$customerId = $session_data['customer_id'];
I am not doing this from within the opencart framework. So would this be appropriate?

Newbie

Posts

Joined
Thu Mar 01, 2012 12:21 am
Who is online

Users browsing this forum: No registered users and 3 guests