where are portal session vars set?

Discuss and get help installing, using and configuring SiT!

where are portal session vars set?

Postby skyrack_technology » Sun Feb 16, 2014 9:26 pm

Hi -
I've been trying to debug, and fix (hopefully) a problem with KB articles in customer portal apparently not being properly selected according to contacts/sites contracts.

This relies on the contract_software() funtcion as far as I can see, and this has $_SESSION['contracts'] in its WHERE clause.

Contract id's for some queries (as $contractid) look like they are grabbed from the contacts entitlement, but the array of contracts (from the contacts site) as set in the session variable $_SESSION['contracts'] is set somewhere else I guess?

I have a test user with only one contract for whom $_SESSION['contracts'] is an empty array.
On the other hand, i have another test user with 5 contracts for whom $_SESSION['contracts'] is properly populated.

Can somebody point me in the right direction for debugging this further? I cannot find anywhere in the included lib and function files anything to set this (any) session variables.

Cheers
Gavin
skyrack_technology
SiT! Regular
SiT! Regular
 
Posts: 39
Joined: Tue Nov 16, 2010 4:57 pm

Return to Installing, Configuring and Using SiT!

Who is online

Users browsing this forum: No registered users and 6 guests

cron