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. 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. 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? 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? Link to comment https://forums.phpfreaks.com/topic/229394-_session-is-useless/#findComment-1183067 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.