Hi,
Recently I encounting massive problem in implementing the session and cookie.
1) When I use session+(save session at server), I might encounter some problem like 'can't find /tmp' directory error from PHP). This will cause the cookieless session_register doesn't work. Why?
2) When I use cookie, certain pc seem like can't support cookie name in array, especially in Window 2000 client.
Actaully what I trying to do is create a cookie/session, as long as the browser is not close, the cookie will be still valid. I try to set my session via below:
$p_cookie['username'] = $info['username'];
$p_cookie['password'] = $info['password'];
session_register('p_cookie');
but somehow, after the user login, and click on other link, the session will be lost, esp in Win2K machine. Why it could happend?
So, I am wondering whether to use Cookieless session(so I won't have the problem to store cookie at client site ,but might get the directory error to store session sometimes), or use set_cookie() (but some client browser have limitation in store cookie?) ?
Please advice.