Hi,
I have a site which takes the files from one of my site by using frames.
It always showing the same domain name through out the site (this is ok).
In the site it uses a simple shopping cart that's working with the help of SESSIONS.
While adding the products to the cart its getting stored in to a session.
The items are set in to the session in both IE and FF and I can access the value in the same page
from which I set. Then the problem is that when I check whether the cart is empty in the next page by using sessions its getting the session is not null in FF but its showing always that the session is empty in IE.
I tried the same with out using the frame that is from the original site it worked perfectly in both IE and FF.
But while using frames its not working in IE.
Please help me to find a solution.
Thanks & regards
Sudheshna [/b]
Seession is not getting from one page to other in IE
Moderator: General Moderators
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
while using the frame, did you use the session_start() in that page ? If yes, try the session_id() after session_start() in that page. If the sessio _id gives something then session is working. If you still face the problem accessing the session values, try to do print_r($HTTP_SESSION_VARS) to see the session variables. It will help you resolve the problem.
cheers,
Dibyendra
cheers,
Dibyendra
Hi,
Yes,I have used session_start() in that page. And tried the print_r($_SESSION) it returned all the values that are set from that page except the one that is set from the previous one.
Also when I clicked on the back button, in the previous page the session is there.
I am getting the sessions only from the pages from where I set it not through out the site.
anyway thanks for your reply
Sudheshna K
Yes,I have used session_start() in that page. And tried the print_r($_SESSION) it returned all the values that are set from that page except the one that is set from the previous one.
Also when I clicked on the back button, in the previous page the session is there.
I am getting the sessions only from the pages from where I set it not through out the site.
anyway thanks for your reply
Sudheshna K
- dibyendrah
- Forum Contributor
- Posts: 491
- Joined: Wed Oct 19, 2005 5:14 am
- Location: Nepal
- Contact:
Hi,
Yes, I used $_SESSION["ITEM_CART"] while setting and taking the value. Its working properly in FF. And also working in both IE and FF with out using the frame that is from the direct page from the original site. I think the problem is because of the frame. But if so its working perfectly in FF what else I don't know
Sudheshna
Yes, I used $_SESSION["ITEM_CART"] while setting and taking the value. Its working properly in FF. And also working in both IE and FF with out using the frame that is from the direct page from the original site. I think the problem is because of the frame. But if so its working perfectly in FF what else I don't know
Sudheshna