Seession is not getting from one page to other in IE

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sudheshna
Forum Newbie
Posts: 4
Joined: Sat Jul 29, 2006 12:27 am

Seession is not getting from one page to other in IE

Post 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]
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post 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
sudheshna
Forum Newbie
Posts: 4
Joined: Sat Jul 29, 2006 12:27 am

Post 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
User avatar
dibyendrah
Forum Contributor
Posts: 491
Joined: Wed Oct 19, 2005 5:14 am
Location: Nepal
Contact:

Post 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
sudheshna
Forum Newbie
Posts: 4
Joined: Sat Jul 29, 2006 12:27 am

Post 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
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Don't use frames?
sudheshna
Forum Newbie
Posts: 4
Joined: Sat Jul 29, 2006 12:27 am

Post 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
Post Reply