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 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(); 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. 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 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
Archived
This topic is now archived and is closed to further replies.