session_start problem

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
User avatar
Luis Almeida
Forum Commoner
Posts: 33
Joined: Tue Apr 01, 2003 4:22 am

session_start problem

Post by Luis Almeida »

:oops:

Hi all,

This is probably somethig that as changed when I upgraded my PHP.

I´m using 4.3.4 PHP version

Before the upgrade, the following code used to return the same session_id every time I refreshed the page or until I close the browser.
This is : I could access the session variables from other pages until I close the browser.

code:

Code: Select all

<?
	session_start();
	echo session_id();
	phpinfo();
	
?>
But the problem is that now that doesn´t hapen anymore. I mean:
Every time I refresh the page or if this page redirect´s to another the session_id is diferent and I loose the session variables

can anyone help me??

Thanks in advance
Post Reply