473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

$_SESSION

Hi!

I have installed EasyPHP on my computer for testing PHP-Scripts. I have also
written a whole System and it works fine when I Upload it to the actual
server where it should be. The problem is, on my local server..the global
$_SESSION variable does not work! Which server (or PHP) settings should be
changed for getting this Global variable to work??

Thanks in advance
//Behrang
Jul 17 '05 #1
3 2011
Behrang Karimibabak wrote:
Hi!

I have installed EasyPHP on my computer for testing PHP-Scripts. I have also
written a whole System and it works fine when I Upload it to the actual
server where it should be. The problem is, on my local server..the global
$_SESSION variable does not work! Which server (or PHP) settings should be
changed for getting this Global variable to work??


Quickest way to answer a question like this for yourself is to create a
file with:

<?php phpinfo() ?>

Put this on both servers, compare output, then adjust yours to match the
target server.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Jul 17 '05 #2
I guess you use a EasyPHP with a PHP version older than 4.1.0. Superglobal
variables only exist since 4.1.0. Most web hosting company use at least the
4.3.x

Savut

"Behrang Karimibabak" <y0******@tu-bs.de> wrote in message
news:ca**********@rzcomm2.rz.tu-bs.de...
Hi!

I have installed EasyPHP on my computer for testing PHP-Scripts. I have
also
written a whole System and it works fine when I Upload it to the actual
server where it should be. The problem is, on my local server..the global
$_SESSION variable does not work! Which server (or PHP) settings should be
changed for getting this Global variable to work??

Thanks in advance
//Behrang


Jul 17 '05 #3
Also forget, make sure to check your session config in php.ini and also if
your session autostart

Savut

"Savut" <we***@hotmail.com> wrote in message
news:Ip******************@news20.bellglobal.com...
I guess you use a EasyPHP with a PHP version older than 4.1.0. Superglobal
variables only exist since 4.1.0. Most web hosting company use at least the
4.3.x

Savut

"Behrang Karimibabak" <y0******@tu-bs.de> wrote in message
news:ca**********@rzcomm2.rz.tu-bs.de...
Hi!

I have installed EasyPHP on my computer for testing PHP-Scripts. I have
also
written a whole System and it works fine when I Upload it to the actual
server where it should be. The problem is, on my local server..the global
$_SESSION variable does not work! Which server (or PHP) settings should
be
changed for getting this Global variable to work??

Thanks in advance
//Behrang


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Phil Powell | last post by:
What is the most standardized method of utilizing the CURL functions in PHP (version 4.3.2) to be able to retrieve the contents of a remote URL that happens to be dependent upon $_SESSION for its...
5
by: h | last post by:
I am at my wits end; I can not see A SINGLE THING I'm doing wrong. I've read every fricking session related doc. I've searched every fricking group. NO ONE seems to have had the problem I'm having...
21
by: axlq | last post by:
Someone please tell me if I've discovered a PHP bug. I'm sitting in front of several computers on my home network, behind a NAT firewall/router. I am testing my web site on these different...
12
by: Michael Windsor | last post by:
I've been trying to integrate some PHP pages of my own with some existing code. The details of this are for the support forums for that code (where I have been asking questions), but I wonder if...
2
by: somecrazyguy | last post by:
Take the following code, one would think that there was absolutely no link between $test and $_SESSION. But if you reload the page, guess what... "After=FAILED". Why? Because for some reason,...
4
by: dpinion | last post by:
Greetings, I am trying to do some simple session stuff. However it does not seem as though the session variable is being created for my site. I am running the latest version of PHP and apache that...
4
by: Pseudonyme | last post by:
Dear Sirs and Madams, Receive as information that storing a MYSQL result under $_SESSION was accelerating web page displays processes ? Absolutly needed but impossible to get this working ! I...
2
by: sharonDonnelly | last post by:
Hi Really dumb problem that's got me beat. Can someone help. The prolem: I'm trying to count the number of times an item has been clicked. There are many items. I want to create a session...
4
by: Daz | last post by:
Hi everyone. I'm just wondering if it's considered bad practice to have a class read from and write to the $_SESSION super global. I was just learning a little about object serialization, and I've...
3
by: JRough | last post by:
I want to save two variables in a $_SESSION for use in another page: $_SESSION = $mark; $_SESSION = $num; then on the other page I did this to get the value: $mark =$_SESSION; $num =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.