Problem with sessions

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Mandron
Forum Newbie
Posts: 1
Joined: Thu Feb 14, 2008 4:59 am

Problem with sessions

Post by Mandron »

Hi Folks !

I currently have a configuration problem about sessions. My test server (running Xampp) doesn't keep session variables.
When I try to run this code :

Code: Select all

<?php
session_start();
echo "SID:".session_id();
?>
the session ID is different every time I refresh the page.
However, it works fine on my web hosting provider.

Could anyone tell me what I have to modify in my server configuration files in order to put sessions to work ?

Thanks in advance
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Problem with sessions

Post by Christopher »

Please post your current session configuration and OS type.
(#10850)
Post Reply