SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,099
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Session changes depending on directory, scratching my head on this one.

    Hi All.
    I have two directories in one domain.
    mydomain.com/admin (This is a CMS I built)
    mydomain.com/zoneminder

    In both of the index pages I have print_r($_SESSION);

    I log into admin and get session data,
    Code:
        [username] => loren
        [url] => /admin/index.php
        [userlevel] => 5
        [userid] => 8add8ab7d3bc44a4bf00ebde7233b769
        [netid] => 335
        [user_type] => admin
    when I go to zoneminder, the only session data I get is,
    Code:
     [skin] => classic
    When I fist saw it, I thought that zoneminder destroyed the session and created it's own.
    Then I pointed my browser back to admin and I was still logged in, I would have then expected that "[skin] => classic" would have been in the admin session.

    What I'm trying to do is set up the session so when you log into admin, you already have the session vars so that you are logged into zoneminder.

    I have set up sites that have WordPress and phpbb and osCommerce and print_r($_SESSION); shows all the session values from each app.

    I even tried cURL to see if I could get a zoneminder login but apparently that just sets up a session with php, not the browser.

    This is the result of "echo $result;" in cURL.

    ZoneMinder Login

    Logging In

    I'm not sure if it a php.ini setting, we built the sever from scratch but if anyone can help that would be great.
    I am open to any ideas or wild speculation.
    Thanks,
    Loren.
    What I lack in acuracy I make up for in misteaks

  2. #2
    SitePoint Wizard lorenw's Avatar
    Join Date
    Feb 2005
    Location
    was rainy Oregon now sunny Florida
    Posts
    1,099
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    One thing I might add, my admin directory is in var/www where as the zoneminder directory is located in us usr/share and running under Apache as an alias.
    I would not think that that would cause issues but that's all I can think of.
    Hopefully some one has some ideas.
    What I lack in acuracy I make up for in misteaks


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
  •