Follow us on Facebook and Twitter!

admin login issue

Sorry to be a pain Steven, but would you be able to point me to which file controls the order of authentication? This is still happening and fasthosts have drawn a blank Sad

Many thanks again
ok... update... had a server specialist look at this whole thing and they suggest it's due to load balancing. Which kind of makes sense -the site is on 2 separate servers and users will be served the site from either server depending on the load, they may also go from one to the other whilst browsing the site. This becomes a problem when they login and the script stores their session as a php session on the server itself, if they are flicked over to the other server the session is not there and they are asked to login again. This would normally be solved by storing the php sessions in the data base so they are there no matter which server the visitor is on. I take it something like this would be a very extensive rewrite so probably isn't in the roadmap?

Many thanks
I'd have a go at this myself but I'm not even nearly knowledgable enough about databases and php

Thanks for letting me know about this. It probably explains why quite a few other people have had similar logging-out issues in the past.

Storing sessions in the database does appear to be an extensive change which I would like to avoid if possible, especially since I believe this to be a problem introduced (and therefore solvable) by the host. However I will definitely look into it over the next day or two to see exactly how feasible it is.

In the meantime I found a few links that you might find useful.

- (using memcached)

- (maybe there is a 'sticky sessions' feature that they can enable)

- (disabling load balancing could be another option)
Have you completed the interview?
Yeah, unfortunately the 'business platinum' hosting package I'm on with fasthosts has load balancing built in but it's not removable, it's a fixed part of the package - I already asked =).

I'll pop them another mail and ask if they can enable sticky sessions but they're (understandably) reluctant to mess with servers that have live sites on them.

I'd have a go at tweaking the script myself but I know jack about MySQL and sessions Smile

Thanks for the help though, and yeah, I really kicked myself that I hadn't worked out load balancing as the issue. D'oh!!

No joy - can't get them to do sticky sessions and memcached is a dedicated server-only option. Sod's law, I go for the most expensive 'business platinum' option hoping for the greatest flexibility and it's the only package that you can't disable load balancing on. Meh.
Wow, am I impressed with Fasthosts now!!!!!!!! So after having been told twice by the tier 1 and tier 2 engineers that 'no can do', I did a little digging and found out they use F5 load balancing from a job ad of theirs. I then did some homework and found the documentation for them to enable sticky sessions. Jumped onto my twitter account which has 30k followers (hey I'm a marketing guy!) and after a little 'discussion' over twitter someone at Fasthosts picked up my tweet and took up the case. End result is they're changing their entire business platinum hosting package and updating all the servers to now have sticky sessions... and they're doing all this by end of play today. How amazing is that?!!
Yep, just to add final confirmation, this has completely solved the 'having to log back in all the darn time' admin logout issue. Very cool.
Nice work in bringing it to their attention, and respect to them for fixing it quickly, although I was surprised it was configured like that in the first place. I'm sure this will help a lot of people. Most of all, glad to hear you can now stay logged in!
Have you completed the interview?

Possibly Related Threads…
Thread Author Replies Views Last Post
Big Grin Strange 404 Error When Hovering Over Admin Menu Methyus 6 2,044 01-Nov-2015, 11:50 AM
Last Post: Methyus
  "There is an issue with" johan 4 2,287 11-Apr-2014, 07:56 PM
Last Post: Steven
  Clean URL's issue? MuffinMan 6 4,869 23-Apr-2013, 01:34 PM
Last Post: Steven
  admin detection not 100% working MuffinMan 2 1,886 20-Apr-2013, 06:03 PM
Last Post: MuffinMan
  [admin link] not correct starchild 2 1,588 13-Mar-2013, 03:04 PM
Last Post: Steven
  Admin login never works fatduckling 14 7,601 19-Sep-2012, 08:30 PM
Last Post: Steven
  admin page doesn't log in.... harvard1932 10 5,540 30-Jul-2012, 08:22 PM
Last Post: harvard1932
  add video issue zifzif 2 1,599 03-Jul-2012, 03:24 AM
Last Post: zifzif
  Admin Label Position Steven 0 1,179 04-Mar-2012, 03:36 PM
Last Post: Steven
  Incorrect URL in Admin (Pages) archym 2 2,200 02-Jul-2011, 03:29 PM
Last Post: archym

Forum Jump:

Users browsing this thread: 1 Guest(s)