Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
01-07-2012, 10:17 AM #1
- Join Date
- Jan 2012
- Thanked 0 Times in 0 Posts
Session not maintaining for the first time
I am developing a e-commerce website. The user logs in and buy a product when he 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. Kindly help..
01-07-2012, 02:22 PM #2
- Join Date
- Feb 2011
- Your Monitor
- Thanked 537 Times in 524 Posts
Check line 14 of index.php
Alternatively, should you wish to actually show us your code, please wrap it in [php] tags.
See my new CodingForums Blog: http://www.codingforums.com/blogs/tangoforce/
Many useful explanations and tips including: Cannot modify headers - already sent, The IE if (isset($_POST['submit'])) bug explained, unexpected T_CONSTANT_ENCAPSED_STRING, debugging tips and much more!