gplaurin Posted April 16, 2010 Share Posted April 16, 2010 Hi! So I have little problem here, it seem that I cannot set a session in my file: /ajax/connection.php and access it in my file /index.php. When I copy connection.php to the root folder and set my session it work... anyone know why? Thanks ! GP Quote Link to comment https://forums.phpfreaks.com/topic/198771-cannot-set-session-into-folder-and-access-it/ Share on other sites More sharing options...
jcbones Posted April 16, 2010 Share Posted April 16, 2010 Did you start the session in index.php? session_start(); Quote Link to comment https://forums.phpfreaks.com/topic/198771-cannot-set-session-into-folder-and-access-it/#findComment-1043354 Share on other sites More sharing options...
gplaurin Posted April 16, 2010 Author Share Posted April 16, 2010 Yes I have started it, when I declare my session in the root folder I can access it, but when I make a session_start() into the /ajax folder all my previously declared session are deleted. Quote Link to comment https://forums.phpfreaks.com/topic/198771-cannot-set-session-into-folder-and-access-it/#findComment-1043360 Share on other sites More sharing options...
gplaurin Posted April 17, 2010 Author Share Posted April 17, 2010 Ok so I know why... in my public_html folder I have a php.ini file and it seems like it was the "problem"... even if I empty it just to have this file was getting me this bug. GP Quote Link to comment https://forums.phpfreaks.com/topic/198771-cannot-set-session-into-folder-and-access-it/#findComment-1043711 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.