Session not maintaining for the first time

Discussion in 'Programming' started by smith001, Jan 11, 2012.

  1. smith001

    smith001 New Member

    Joined:
    Jan 9, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Services
    Location:
    Ahmedabad,Gujarat,India
    Home Page:
    http://www.esparkinfo.com/services/web-design/ecommerce-web-design.html
    Hi PHP Guru,

    I am developing a e-commerce website. The user logs in and buys a product when he /she checkout the page will redirect to the payment gateway. After the payment is completed it will return back to my website. This is ok. But when it is returning back the session maintained in my website get lost. This happen only for the first time. If the user again logged in and checkout the process works good and the session is maintaining.

    Why does the session lost for first time.

    I used session_start() in all the pages..

    I cannot find the solutions.
    Please Help me to solve this problem.

    Thank’s in Advance
    Smith
    eSparkInfo
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    It could be that user is taking longer the first time when doing the payment and in this time frame the session is getting lost.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice