Dird Posted March 2, 2011 Share Posted March 2, 2011 Hi, Today I was showing my work to my project supervisor and he asked why I used $_SESSION in PHP to store session info. He said that (with jsp at least) tomcat handles all the session stuff and you interact with that. Is this true for PHP also (normal apache)? If so then why use $_SESSION? :f Thanks for info. Quote Link to comment https://forums.phpfreaks.com/topic/229394-_session-is-useless/ Share on other sites More sharing options...
trq Posted March 2, 2011 Share Posted March 2, 2011 Unless you implement your own session functionality it is provided via the $_SESSION array in php. Quote Link to comment https://forums.phpfreaks.com/topic/229394-_session-is-useless/#findComment-1182111 Share on other sites More sharing options...
Dird Posted March 4, 2011 Author Share Posted March 4, 2011 Yes I've made it say $_SESSION is stored/accessed from the database. So you don't/can't interact with some apache session storage & instead? Quote Link to comment https://forums.phpfreaks.com/topic/229394-_session-is-useless/#findComment-1183065 Share on other sites More sharing options...
trq Posted March 5, 2011 Share Posted March 5, 2011 Apache does not provide session storage, PHP does, or you can use your own. What is the issue? Quote Link to comment https://forums.phpfreaks.com/topic/229394-_session-is-useless/#findComment-1183067 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.