Forums / General Questions / Access the $_SESSION from a non-zen folder

Access the $_SESSION from a non-zen folder

Locked

Views: 1,112

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
19 Sep 2009, 1:34 AM
#1
drbyday avatar

drbyday

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Access the $_SESSION from a non-zen folder

I have read the many post about accessing the $_SESSION from outside zc, but my question is tad different but I think simple..? :

I have osTicket (ticket support system) install in ../helpdesk/

For security reasons I only want allow access to /helpdesk/... if the user is logged in with zencart.

I tried putting:

require_once '../includes/application_top.php'; in but then in redirects to zc/install.....

Any ideas?

Thanks for your guy's time, much appreciated.

19 Sep 2009, 1:45 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Access the $_SESSION from a non-zen folder

Youl will probably have to write a bridge - not a simple task at all

Zen-Venom Get Bitten

19 Sep 2009, 1:49 AM
#3
drbyday avatar

drbyday

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Access the $_SESSION from a non-zen folder

oh:)

Whats a bridge?

19 Sep 2009, 1:56 AM
#4
drbyday avatar

drbyday

New Zenner

Join Date:
Mar 2008
Posts:
50
Plugin Contributions:
0

Re: Access the $_SESSION from a non-zen folder

Am I even close?:

require_once '../includes/configure.php';

if (!$_SESSION['customer_id']) {

I guess I am still not connecting to the database.

19 Sep 2009, 3:39 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Access the $_SESSION from a non-zen folder

See if the add on for Sidebox Anywhere helps you with this:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=79

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!