June 29th, 2000, 05:44 PM
Well, I wrote two code like this on my Win98 + PWS + PHP 4.0.1:
printf('<a href="index2.php?%s">Link</a>', SID);
And I get empty result just like $counter wasn't seted when I loaded index2.php.
I've heard that php session variables can not be changed, it's ok to me, but I don't think a session function without variable-passing ability should be called a "session".
Any suggestion? I've buzzing on this problem over 48 hours, I want use this to track my member 'logged' and act without cookie.
BTW, my php.ini is almost setting on the default value, besides the session.save_path.
[This message has been edited by eggli (edited June 29, 2000).]
June 29th, 2000, 06:02 PM
I don't know anything about sessions in php4, but I did notice a problem in your code that could give you that problem.
You have session_register("counter");
it should be session_register("$counter");
Hope that helps
June 29th, 2000, 06:17 PM
Well, thanks for the reply anyway, I've tried ur suggestion many times b4 I post, even like these:
And all documentation I've read b4 this post are all writing in this format:
What're material of a programmer?
Coffin and Coffeine.
June 30th, 2000, 03:53 PM
You need session_start() in index.php before your session_register().
June 30th, 2000, 04:16 PM
Well, I've read so many article talk about session, all of them are saying once I register a variable to session, the session will automatically began...
And 48 hours(more than it now) is long enough to try every writing combination.
[This message has been edited by eggli (edited June 30, 2000).]