Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Sessions Not Working (but they work fine for other scripts)

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Sessions Not Working (but they work fine for other scripts)

  • This topic has 5 replies, 2 voices, and was last updated 14 years, 3 months ago by HBin123.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 2, 2011 at 6:03 am #2623
    HBin123
    Member

    Hi,

    We are continuing to have problems with sessions not working on the site. However, we have uploaded test files to check if sessions are working, and they are working fine. So this suggests an issue with the plugins (we have eMember, Affiliate, Shopping cart plugins all installed). Below are links so that you can see sessions working. We hope you can suggest what may be the issue.

    phpinfo:

    http://www.homebusinessin123.com/phpinfo.php

    Sessions test 1:

    Load page once, it should show no session found, and then load one. Refresh the page, it will show that a session is found:

    http://www.homebusinessin123.com/session_test2.php

    Sessions test 2:

    (Writes a value into a $_SESSION variable, then checks for it on a second page:

    http://www.homebusinessin123.com/session_test.php

    But using the recommended test in the eStore pages for example, shows that the values are not being added to the cart sessions, and the checkout button gives the sessions error page.

    Please help.

    Thanks,

    Kevin

    February 2, 2011 at 6:18 am #28630
    amin007
    Participant

    I just checked the following script and it doesn’t hold the session value which confirms that the site is having intermittent session issue:

    http://www.homebusinessin123.com/session_test.php

    Go to the above URL then click the link. Now go back and click the link again. Do this a few times and you will see that sometimes it has the value sometimes it doesn’t. I tried this in firebox and google chrome with the result. Here is what my screen looks like (see how the “abc” variation doesn’t have a value?)

    http://images.tipsandtricks-hq.com/forum-images/canbe-deleted/session_value_test.jpg

    When I tried this on IE I was able to see the value. This behavior indicates that sometimes the site is storing the session sometimes its not.

    Also, why are you passing the SESSION ID as a HTTP GET parameter? These days you shouldn’t need to find the session using the Session ID. As soon as you use the $_SESSION variable it should be there. Does the session only work on your site if the Session ID is passed from script to script and set individually on every script?

    If the plugin did have an issue with the session then it would affect other thousands of sites using the same code.

    February 2, 2011 at 6:49 am #28631
    amin007
    Participant

    If sessions only work on your site if it is passed from one script to another and set specifically then I should be able to give you some custom code so that eStore will do that on your site too.

    February 3, 2011 at 5:54 am #28632
    HBin123
    Member

    Hi,

    I made some progress on figuring out whats going on I think.

    Server techs made their own version of the test script I made, and it shows sessions working fine – in Firefox and IE. But testing in Chrome shows it does not save the value at all. This seems to be totally consistent – at least for me. The odd part though is that in Firefox, the shopping cart still isn’t saving values, so there must be differences in the way the session values are saved between the test file, and the plugins.

    The link to the new test is here:

    http://www.homebusinessin123.com/test1.php

    Now, I know that the server is setup for both php4 and php5, with php5 sites using code in .htaccess as follows:

    Action application/x-httpd-php5 /cgi-sys/php5

    AddType application/x-httpd-php5 .php5 .php .phtml

    So, as an experiment, I removed that from the .htaccess and tried the above test again in Chrome – bingo, session values are saving.

    Put it back into ,htaccess, and again, session values not saving.

    So I am thinking that we maybe need to add an additional application or action line to the .htaccess lines above – what do you think? Seems like I am on track to the mystery solution?

    Failing that, we are very happy to accept your generous offer of some custom code, or provide FTP logins etc for you to look first hand.

    Thanks,

    Kevin

    February 4, 2011 at 1:51 am #28633
    amin007
    Participant

    I have sent you an email to get site access so I can investigate this.

    February 4, 2011 at 4:46 am #28634
    HBin123
    Member

    Hi Ivy,

    Have filled out the form.

    Thanx

    Monica

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ