Advanced Search

Results 1 to 7 of 7

Thread: Sessions Aren't Working Correctly....Any Ideas?

  1. #1
    Join Date
    Jul 2013
    Posts
    32
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Sessions Aren't Working Correctly....Any Ideas?

    Greetings, August 11th 2013

    Last evening I began consolidating the components of my site and while the "Login Script" has always worked fine as it utilizes "Sessions" I routed it into an iframe on my main page and the script allows account login fine, however, it doesn't permit login protected pages to be loaded into a "Popup" rather the script redirects as planned to the "Login page". The oddity, all works fine in MSIE 9 and if I keep the login script in a "new window" of it's own all goes well with all the browsers.... any ideas?

    Appreciatively,
    Ted

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,699
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    Since you say one works and the other doesn't, please define how "Popup" is different from a "new window".
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2013
    Posts
    32
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Greetings John,

    The "Popup" is a "Hidden Div" invoked by javascript while "New Window" references a complete new browser window. Additionally a pattern exists in the scripts use for browsers "Firefox 19?" and "Chrome". The login script works fine and I am logged in however when I select a button which I have configured to open a new window, opens a "New "Browser Window" for the page that is login script protected page the new window defaults to the default login page as selected when the user isn't logged in. Again, however, if I login via the new default login page that loaded the newly loaded login page it works fine as another session is established in the new browser window and the buttons work correctly...Appears as though sessions aren't working for browsers "FF", "Chrome" within the iframe??...any ideas?

    Appreciatively,
    Ted

  4. #4
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    Well, since you're saying it works fine in Internet Explorer but not Firefox or Chrome, let's try something. At the top of each page that uses a session (under after you start the session), add:

    Code:
    <?php
    echo "Session ID: " . session_id();
    ?>
    That'll tell us what's happening between the two pages and let us know if the session IDs are changing or not.

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,699
    Thanks
    43
    Thanked 3,132 Times in 3,096 Posts
    Blog Entries
    12

    Default

    Yes, and while we're at it, can we see this javascript code please? Or better yet, can we have a link to the page?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Jul 2013
    Posts
    32
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    John, Nile August 14th 2013

    I apologize that I didn't respond immediately after your helpful information that did resolve the issue. I utilize a "Session.php" and the session wasn't past through the session file due to quotation errors. After I replaced the quotes the session id passed amazingly to provide a sigh of relief....I much appreciate your combined efforts "John", "Nile" You're doing great work in here !!
    Appreciatively,
    Ted

  7. #7
    Join Date
    Jan 2008
    Posts
    4,158
    Thanks
    28
    Thanked 623 Times in 619 Posts
    Blog Entries
    1

    Default

    Glad to help

Similar Threads

  1. Menu Bar Button Links Aren't Working
    By onestopplay in forum CSS
    Replies: 0
    Last Post: 06-19-2011, 01:34 AM
  2. Ult Fade-in v2.4 not working correctly on Opera
    By rikelydog in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-16-2010, 12:23 AM
  3. Link CSS not working correctly in FF?
    By Kakouhai in forum CSS
    Replies: 2
    Last Post: 02-10-2007, 01:37 PM
  4. ajax menus (not dd) aren't working in IE7
    By LifeIsBeta in forum JavaScript
    Replies: 2
    Last Post: 11-28-2006, 08:46 PM
  5. HELP! Links on my webpage aren't working
    By sandmountaingirl in forum Other
    Replies: 4
    Last Post: 05-27-2005, 04: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
  •