Jump to content

Explorer and session = false


PeFo

Recommended Posts

Frustrated!

Developing my webshop on Mac, having it working fine on Safari, FF, Netscape.

Got the input a wile ago that the Chart didn´t show up in IE.

 

Been trying a couple of weeks now...

The site is using http, html and php only.

Session seems to be the problem.

 

Reading and testing:

Privacy policy required for IE.

SID in URL

HTML and CSS validation

Been all over this forum and trying tips, but my problem persist.

 

Just moved all session_start() to a seperate php-file that includes on all pages.

But I have to wait for an IE-test, since I don´t own a windows-machine.

 

Any one - comfort me!

 

A testlocation for the site is at:

bastebo.hopto.org/kb/

 

 

Regards

PeFo

 

Link to comment
Share on other sites

wow thats a nice description of your php/web development adventures :)

 

if you want us to help, narrow down your technical problem or what you think it is, and tell us what that is, show us some code, something...

 

And then we can help :)

Link to comment
Share on other sites

Off course! Getting tired..

 

The site is in frames head and main.

In main a php-file reads a "database"-file puts data in a form per each product.

 

The product form-section in a table:

echo "<td><form method='post' action='head.php' target='head'>" . 
     "<INPUT TYPE='HIDDEN' NAME='id' VALUE='" . $tab_a[$produktnamn] . " " . $forp_a[$i] . "'>
     <INPUT TYPE='HIDDEN' NAME='price' VALUE='" . $pris_a[$i] . "'>
     <INPUT TYPE='text' NAME='qty' value='1' size='2'>
     <INPUT TYPE='image' class='image-kop' src='kop.jpg' NAME='add' value='submit' alt='Köp'></FORM></td>";

 

In IE the head-frame containing the chart does not show up:

<div id="huvud">
<img src="kblogo3.png" alt="">


<!-- SHART -->
	<?php 
	if($cart->itemcount > 0) { ?>
		<div id="varukorg"><span class="green">Varukorg:</span><br>
		<?php
			if($_POST['add']) {
			echo "Senast ilagt:<br>";
			print_r($_POST['id']);
			echo "...";
			print_r($_POST['price']);
			echo " kr<br>";
			}
		else { echo "<br><br>"; }?>
		<b>Varukorg total:
		<?php echo number_format($cart->total,0,'.',' ') . " kr<br>"; 
		?></b>
		<div class='bilder'>
		<a href="kassa1.php?meny=kassa" rel="self" target="main"><img src='kassa.jpg' alt='Kassa'></a>
		<form method='post' action='huvud.php' target='huvud'>
		<input type='hidden' name='empty' value='empty'>
		<input type='image' name='empty' value='Töm varukorgen' alt='Töm varukorgen' src='tom.jpg'/></form>
		</div>
		<?php 
	} 
	else {?>
		<div id="varukorg"><div class="rubrik">10%</div>
			<b>prissänkning på linoljefärg och<br>
			slamfärg under maj och juni!</b></div><br>
		<?php } ?>
	</div>

</div>

 

 

 

Thanks

Pefo

Link to comment
Share on other sites

run some kind of test to make sure that your PHP code is being executed, if it is then php is not your problem, its the frame and correct html being rendered by IE

 

Look at the source of your document and see if the html code you outputted with php is there or not

 

If it is, then php has done its part of the job, whether your particular browser renders the html properly is a different story...

Link to comment
Share on other sites

I´m just thinking that I´m missing some explorer-special-treatment, since other browers is rendering the script well.

They have accepted all changes I´ve done to charm explorer.

 

Had the head-frame (chart) show SessionID for testing, and the ID-string showed first load of the site, and then got a knew value with the first -buy- klick.

Normal?

(Same for all browsers)

 

 

 

Link to comment
Share on other sites

session_start() is a depreciated function. You shouldn't use it. Just create and initialize your variables.

 

Are you sure?

 

I could swear I read to not use it. I'm looking for where, but cannot find it.

 

EDIT: My memory has not served me. session_register() is bad. Ignore everything I said.

Link to comment
Share on other sites

Obviously I´m missing something.

 

All files that make use of the chartfunktions have:

 

<?php
include (chartfunktions.php);

at the very top.

 

The chart-funktion file have:

<?php
session_start();

at the very top.

 

IE security issue?

Form issue?

Frame issue? (background frames is html)

 

 

 

Link to comment
Share on other sites

What are you using to test the page? It's possible, although unlikely, that the browser has security settings set so that it does not accept the session cookie. If this is the case and you have session.use_only_cookies set, then you will lose the session between pages.

 

Also I think to include a file you need the syntax: include ("chartfunktions.php");

Link to comment
Share on other sites

Hm.. have to check the use-cookie-only.

That is an php.ini setting, right?

I´m not familiar with changing php-settings, but I´ll try.

Can I do that temporarely with a function? Like "in this session use only SID in header"

 

Sloppy syntax in my message. It´s correct in the files.

 

Thanks

Link to comment
Share on other sites

Ok, problem located.

It´s IE that´s not making use of submit-image:

<INPUT TYPE='image' class='image-kop' src='Submit.jpg' NAME='add' value='Submit' alt='Submit'>

 

Happy for any suggestions that helps me have an image instead of the not-quite-as-good-looking standard botton.

 

 

PeFo

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.