Hi guys
I,ve been reading a few articles on sessions and it seems to be pretty straight forward apart from one small snag, anything I try doesnt work.
Take the following script for instance ...
<?php
// initialize a session
session_start();
// register a session variable
session_register('counter');
// increment and display the value of the counter
$counter++;
echo("You have visited this page $counter times! Don't you have anything else to do, you bum?!");
?>
I saved that as index.php, so its the default page, and what should happen is that when you refresh it, the counter should increment, but nothing.
I have looked in my session data, and the sessions are being created with the correct variable, but when i check my temp internet folder, there isnt a cookie present.
Can someone help me get this working.
Below is what I believe to be the relevant session info from my php.ini folder.....
[Session]
session.save_handler = files
session.save_path = :*****\sessiondata
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain = localhost
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
I,m using the latest release of Foxserv on Windows XP
Thx for any help guys