2011-10-09, 07:27 AM
Alright so I have my forum installed in directory "forum". I have a nice looking login page as my main index page, it is coded to check if the user is logged in and if so it directs them straight to the forum, if not they stay on the login page.
This is done by reading the cookies, I had to make my cookie path "/" to do this so the entire server can access the cookie. My problem now is when I try to use the adminCP it logs me out with every link I click. If I change the cookiepath back to "/forum/" the AdminCP will work just fine but the login page does not!
Is there any way I can fix this? Maybe have the login/logout on two different paths? IE both /forum/ and /? Maybe have MyBB plant it in /forum/ and write a script to copy all cookies from /forum/ to /?
Thanks for the help!
This is done by reading the cookies, I had to make my cookie path "/" to do this so the entire server can access the cookie. My problem now is when I try to use the adminCP it logs me out with every link I click. If I change the cookiepath back to "/forum/" the AdminCP will work just fine but the login page does not!
Is there any way I can fix this? Maybe have the login/logout on two different paths? IE both /forum/ and /? Maybe have MyBB plant it in /forum/ and write a script to copy all cookies from /forum/ to /?
Thanks for the help!