how can i set session/session cache not to ever expire (in php.ini it expires)?
Why would you want this? It is quite dangerous!
If you want, u can save sessions into db using session_encode(), session_decode() and other session-related funcs. By rewritting the 'load', 'save' and garbage collecting functions, U can have a session never expire 🙂, if u can recognize a user.
See http://www.php.net/manual/en/function.session-set-save-handler.php for more info
my problem: at client side session/cookie/whatever expires in few minutes. user can't do any administration. i would like it to last 2 hours.
The change the expire tim of the cookie.
Read the PHP manual about the PHP.ini
i can't change php.ini. that is my problem
Can U use htaccess file ? If yes throw it in ...