Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default 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

  3. #3
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

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

    oh:)

    Whats a bridge?

  4. #4
    Join Date
    Mar 2008
    Posts
    49
    Plugin Contributions
    0

    Default 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.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default 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?ma...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: v1.5.5]
    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!

 

 

Similar Threads

  1. Replies: 23
    Last Post: 8 Oct 2014, 05:32 AM
  2. Get $_SESSION['cart'] data on a non-zen page
    By djdavedawson in forum General Questions
    Replies: 6
    Last Post: 7 Feb 2013, 04:07 PM
  3. Access the $_SESSION from a non-zen script
    By FrankDeRosa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 12 Jun 2009, 08:11 PM
  4. How do I set the language from a non-zen-cart page?
    By jdl in forum General Questions
    Replies: 1
    Last Post: 28 May 2008, 06:50 PM
  5. Replies: 0
    Last Post: 23 Nov 2006, 08:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR