Page 1 of 1

Seession is not getting from one page to other in IE

Posted: Sat Jul 29, 2006 12:43 am
by sudheshna
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]

Posted: Sat Jul 29, 2006 1:25 am
by dibyendrah
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

Posted: Sat Jul 29, 2006 1:39 am
by sudheshna
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

Posted: Sat Jul 29, 2006 1:48 am
by dibyendrah
Hello,
Maybe the spelling of the session variable name(session index) you're trying to access is incorrect...
Check if the session variable name in which you assigned is same as you're trying to retrieve.

Dibyendra

Posted: Sat Jul 29, 2006 1:57 am
by sudheshna
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

Posted: Sat Jul 29, 2006 2:39 am
by daedalus__
Don't use frames?

Posted: Sat Jul 29, 2006 3:08 am
by sudheshna
Then how can I access the files from one of my server using new domain.
That is I have all the files in a sudirectory of a domain and I need to access them with new domain name.
Please advice

Sudheshna