![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveProblem with session variables?
From: Nicole <nickywebsterjohns@yahoo.co.uk>
Date: Tue Oct 25 2005 - 09:42:38 CEST
Hi
I'm trying to use a function to set a session variable. I have three files:
The first file has:
<?php session_start(); // This connects to the existing session
I then have a functions.php file:
<?php session_start();
And finally thiscountry.php:
<?php session_start(); ?>
<body>
</body>
However when i click on the link in the first page, the functions.php page
but the final page gets displayed with:
The function is obvioulsy being run, but for some reason the change in value
Thats not how I was understanding they should work
Can anyone explain what I have done wrong?
Many thanks for any help given
N
|