Callister Posted June 19, 2008 Share Posted June 19, 2008 First of all, if I did something like this: $_SESSION['user_id'] = $row['ID']; $_SESSION['logged_in'] = TRUE; header("Location: blahblah.php"); How long would this session last? Additionally, I typically see people against sessions. Why do people seem to be against them, and is there anything serious wrong with doing the above? Thank you for your time Link to comment https://forums.phpfreaks.com/topic/110854-sessions/ Share on other sites More sharing options...
beboo002 Posted June 19, 2008 Share Posted June 19, 2008 By defult session in php.ini file set to 24 Minutes. u can change also session time in runtime or set in php.ini manually. if u can set session same name with diffrent value its gives some trabule or not start session in top of page or wrong syntex. Link to comment https://forums.phpfreaks.com/topic/110854-sessions/#findComment-568775 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.