stevenazari Posted December 17, 2008 Share Posted December 17, 2008 Hi there - Im not sure if this is just pure coincidence or a deliberate move but here is the story.... I've taken over a role as a web designer from a previous guy that has worked for this company, and from what I can see, it looks like he was using a code igniter framework to create the site. Now its not a complex website, but for some reason I cant seem to retrieve session data when working out of a specific directory? the directory the session works in is "root/system/applications/views" but even while he was here, he told other developers to create pages in the root directory where the login sessions were not being held. So I have been the best part of 3 weeks now tracking the login details of a user in the hope of finding something thats locking it in the directory but I cant see anything - likely to be my lack of experience. can anyone give me a suggestion on how I can make the sessions work for all directories?? I appreciate any help as I am totally stumped at this. Link to comment https://forums.phpfreaks.com/topic/137382-directory-restricted-sessions/ Share on other sites More sharing options...
trq Posted December 17, 2008 Share Posted December 17, 2008 If he is indeed using codeignitor then all requests should be made through a single front controller. I don't see how any other directories would come into play. Link to comment https://forums.phpfreaks.com/topic/137382-directory-restricted-sessions/#findComment-717834 Share on other sites More sharing options...
stevenazari Posted December 17, 2008 Author Share Posted December 17, 2008 so what does this mean? one single index.php file and then a seperate "content" file loaded into that which will hold various content per page? Link to comment https://forums.phpfreaks.com/topic/137382-directory-restricted-sessions/#findComment-717860 Share on other sites More sharing options...
trq Posted December 17, 2008 Share Posted December 17, 2008 Indeed. Link to comment https://forums.phpfreaks.com/topic/137382-directory-restricted-sessions/#findComment-717865 Share on other sites More sharing options...
stevenazari Posted December 17, 2008 Author Share Posted December 17, 2008 silly man has been telling everyone to include his index file in any directory they create probably why the sessions have been lost - starting to make sense. I've never looked at code igniter as I prefer to make whats needed. is there anyway I can take that session to use in the main directory? edit** He's also been using multiple index's himself in subdirectories from the views folder... Link to comment https://forums.phpfreaks.com/topic/137382-directory-restricted-sessions/#findComment-717876 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.