PHP Session header problem
Moderator: General Moderators
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
PHP Session header problem
Hi All,
I am going out of my mind with this header session probelm. At the top of every page that deals with $_SESSION Variables i have the folowing included code:
<?
ob_start();
session_start();
header("Cache-control:private"); //IE 6 Fix
BUT...... when i try running my code on the server IE6 wont keep the $_SESSION variables stored from page to page. The only way i can get it to work in IE6 is by specifically going into the internet options and overriding cookie handling. I really dont want this to be the only option as i dont want to have to tell everybody to override there cookies to view my site. I have read all of the other forums about this probelm and doen all that has been advised to no avail.
I really need some PHP SESSION guru's to help me out.
Cheers
Rob
I am going out of my mind with this header session probelm. At the top of every page that deals with $_SESSION Variables i have the folowing included code:
<?
ob_start();
session_start();
header("Cache-control:private"); //IE 6 Fix
BUT...... when i try running my code on the server IE6 wont keep the $_SESSION variables stored from page to page. The only way i can get it to work in IE6 is by specifically going into the internet options and overriding cookie handling. I really dont want this to be the only option as i dont want to have to tell everybody to override there cookies to view my site. I have read all of the other forums about this probelm and doen all that has been advised to no avail.
I really need some PHP SESSION guru's to help me out.
Cheers
Rob
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
Try giving :
Code: Select all
header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
You could try doing:
Code: Select all
<?php
session_start();
flush();- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am
robster3uk wrote:is there no other way of redirecting php pages instead of using header(Location: blah blah)???
Code: Select all
<meta http-equiv="Refresh" content="0;url=wherever.php">
If the browser does not automatically redirect you, then click
<a href="wherever.php">here</a>- robster3uk
- Forum Newbie
- Posts: 10
- Joined: Wed Mar 02, 2005 2:26 am