Re: pls help me :-)

From: Date: Mon, 05 May 2003 13:55:04 +0000
Subject: Re: pls help me :-)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146432@lists.php.net to get a copy of this message
Even if the cookie lives forever (still browsers have a limit for how long they keep a cookie), you still need to keep the session file. Its lifetime is kontroled by session.gc_maxlifetime, this value can be changed using ini_set(), but it won't help you if you are on a shared host. So you will need to implement your own session handlers and store the variables elsewhere (e.g. database). kristi wrote:
Hi, Okay, this function is used to set or print the current value of the expire. Its set on your php.ini by default to 180 minutes and yes, new values are in minutes too. If you need any more help you are free to mail me. that the session_cache_expire() but i should need something to set my sessions to never to die so instead of using cookies just let the session alive , also when closing browser is that possible ? i work like this a bit noob but it works :-) <?PHP ob_start(); session_start(); if($_SESSION["toegang"]=="jawhol") { } and maybe if you find the time is this safe ? <?PHP ob_start(); session_start(); include('pages/inc.php'); $login=$_POST["naam"]; $pas=$_POST["passw"]; $query = "SELECT * FROM noobregist WHERE login = '$login' and paswoord = '$pas'"; $res = mysql_query($query); $count = mysql_num_rows($res); if ($count != 0) { $_SESSION["toegang"]="jawhol"; session_register("login"); header("Location:index.php?page=pages/ingelogt"); } else {
      header("Location:index.php?page=pages/inlog");
} ?> if you can help me out here i will be very very thankfull :-) i hope you understand my english :-)


« previous php.general (#146432) next »