Discussion Forums  >  Self Hosted Control Panels

Replies: 5    Views: 99

sonny1277
Android Fan
Profile
Posts: 34
Reg: Jan 16, 2011
ny
1,290
06/23/12 12:27 PM (13 years ago)

buzztouch 2.1.7 log-in problems

every time i sign in to my control panel on a self hosted.i go to click the app or any other link in the control panel such as admin and it kicks me out and says log in session has expired.does any body have a fix for this problem.i just upgraded to the new version of the control panel the other day.
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
06/23/12 01:44 PM (13 years ago)
Look under admin/server settings/ session cookies also clear your browser cookies make sure no old ones are still around.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/23/12 02:45 PM (13 years ago)
^ yup try that and get back to us on the results, also make sure to try it on a different browser for testing too. David buzztouchmods.com
 
sonny1277
Android Fan
Profile
Posts: 34
Reg: Jan 16, 2011
ny
1,290
like
06/23/12 02:50 PM (13 years ago)
it didn't work i even did a fresh install and it does the same thing with 2.1.6 and 2.1.7.i also tried it on firefox as well as chrome.i can log in then if i click on any link inside the control panel it logs me right back out and says session ended.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
06/23/12 04:59 PM (13 years ago)
Do you have team viewer? David buzztouchmods.com
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/25/12 03:04 AM (13 years ago)
@sonny1277: Whatever is happening isn't going to be related to the version...the session management process hasn't changed. Has this ever worked? Were you able to login "before" and now cannot? If not ever, does your PHP powered server have sessions enabled? Very few DO NOT so it's probably not that. All of the screens in the control panel use the same logic to see if you're logged in or not. Each screen looks for a session variable to get your user id (your unique id). Next, it calls a simple routine in the class.User file called fnLoggedInReq(). This method does nothing more than check the database to see if tbl_bt_users.isLoggedIn = 1. You can see this on line 167 of the class.User.php file (in the includes directory). So, how does "isLoggedIn" get set to 1? After it checks to see if your logged in (again, this happens on every page), it updates the user record for you in the database to "1". So, everytime you view a page successfully the database is updated to "is logged in" for your account. Basic stuff, you may need to do some digging to see what is / isn't happening.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.