Any ideas or suggested tutorials or books on the subject of sessions in php would be greatly appreaciated.
Here's my current problem
/////////////////////////////////////////////
I can set cookies ok using the setcookie() function and I can generate a session id with session_start(), but when i try to register a session variable its no go.Also the session does not seem to be using cookies on the client browser.
////////environments////////////////////////
The server is linux redhat 6.2 running apache 1.3.19 . The browser is msie 6.0. on win 2000. I'm running php 4.0.5.
/////////some php settings//////////////////
phpinfo() tells me that session.use_cookies is on, session.save_path is /tmp, register_globals is on, session.use_trans_sid is set to 1, session.cookie_path is /, session.cookie_domain is set to "no value".
///////////more details///////////////////
session_register('count');
session_register("sess_var");
When I "echo "$PHPSESSID" I get a sessionId.
When I "echo SID;" I get "PHPSESSID=97e8e27108467512dd4c166935358dfb" ,but only on the first page. The second page returns nothing on this echo command.
When I use session_encode() I get the following results
"$morestuff =session_encode();
echo $morestuff;
producing this on the initial page load
"count|s:1:"1";sess_var|i:3;"
My variables $count, and $sess_var seem to be there but I can't access them on the next page.
This is a good time for a cup of java and head scratching!